Spring Data JPA: LIKE with OR query

@RepositoryRestResource
public interface ProductRepository extends JpaRepository<Product, String> {	
	List<Product> findByTitleContainingIgnoreCaseOrIdContainingIgnoreCase(
             @Param("q") String name, @Param("q") String id);
}
Request path:
GET https://localhost:8443/api/products/search/findByTitleContainingIgnoreCaseOrIdContainingIgnoreCase?q=...
If we need shorter request path:
        // GET https://localhost:8443/api/products/search/custom?q=...
        @RestResource(path = "custom")
	List<Product> findByTitleContainingIgnoreCaseOrIdContainingIgnoreCase(
             @Param("q") String name, @Param("q") String id);