From cf91d82e81fb6f194781107b3ce5dd5258269639 Mon Sep 17 00:00:00 2001 From: Mohsin Husen Date: Wed, 10 Apr 2013 10:54:48 +0200 Subject: [PATCH] Documentation for method which will return List Documentation for method which will return List --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 497561be2..30d4a8ab4 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Extending ElasticsearchRepository for custom methods public interface BookRepository extends Repository { //Equivalent Json Query will be "{ "bool" : { "must" :[{ "field" : {"name" : "?"} },{ "field" : {"price" : "?"} }]} }" - List; findByNameAndPrice(String name, Integer price); + List findByNameAndPrice(String name, Integer price); //Equivalent Json Query will be "{"bool" : {"should" : [ {"field" : "name" : "?"}}, {"field" : {"price" : "?"}} ]}}" List findByNameOrPrice(String name, Integer price);