Update README.md

This commit is contained in:
Mohsin Husen 2013-04-05 12:23:13 +02:00
parent 0d072ab114
commit 6e57235fa9

View File

@ -57,12 +57,6 @@ Extending ElasticsearchRepository for custom methods
```java
public interface BookRepository extends Repository<Book, String> {
//Equivalent Json Query will be "{ "bool" : { "must" :[{ "field" : {"name" : "?"} },{ "field" : {"price" : "?"} }]} }"
List<Book>; findByNameAndPrice(String name, Integer price);
//Equivalent Json Query will be "{"bool" : {"should" : [ {"field" : "name" : "?"}}, {"field" : {"price" : "?"}} ]}}"
List<Book> findByNameOrPrice(String name, Integer price);
//Equivalent Json Query will be "{"bool" : {"must" : {"field" : {"name" : "?"}}}}"
Page<Book> findByName(String name,Pageable page);