mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-22 03:52:10 +00:00
Documentation for method which will return List<T>
Documentation for method which will return List<T>
This commit is contained in:
parent
3fd3286386
commit
cf91d82e81
@ -58,7 +58,7 @@ Extending ElasticsearchRepository for custom methods
|
||||
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);
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user