query changes

This commit is contained in:
mujah 2016-11-12 12:32:30 +08:00
parent de948bc4ab
commit 26864e2897
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ public interface ProductRepository extends SolrCrudRepository<Product, String> {
public List<Product> findByName(String name);
@Query("name:*?0* OR description:*?0*")
@Query("id:*?0* OR name:*?0*")
public Page<Product> findByCustomQuery(String searchTerm, Pageable pageable);
@Query(name = "Product.findByNamedQuery")

View File

@ -1 +1 @@
Product.findByNamedQuery=name:*?0* OR description:*?0*
Product.findByNamedQuery=id:*?0* OR name:*?0*