mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-22 20:12:11 +00:00
Update README.md
This commit is contained in:
parent
0d072ab114
commit
6e57235fa9
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user