mirror of
				https://github.com/spring-projects/spring-data-elasticsearch.git
				synced 2025-10-31 06:38:44 +00:00 
			
		
		
		
	
						commit
						fe25ef25b4
					
				| @ -47,7 +47,7 @@ The ElasticsearchCrudRepository extends PagingAndSortingRepository | ||||
| Extending ElasticsearchRepository for custom methods | ||||
| 
 | ||||
| ```java | ||||
|     public interface BookRepository extends Repository<Book, String> { | ||||
|     public interface BookRepository extends Repositor<Book, String> { | ||||
| 
 | ||||
|         //Equivalent Json Query will be "{ "bool" : { "must" :[{ "field" : {"name" : "?"} },{ "field" : {"price" : "?"} }]} }" | ||||
|         List<Book>; findByNameAndPrice(String name, Integer price); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user