Skip to content

Testproject for discussing nested search with spring-data-elasticsearch

Notifications You must be signed in to change notification settings

empulse-gmbh/elasticsearchtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

elasticsearchtest

Testproject for discussing nested search with spring-data-elasticsearch, see Stackoverflow Discussion

#Preferences

  • Java 1.7
  • Maven 3

#Introduction In this simple example we have a FoodTruck which is in a certain place in a certain time:

#Service explanation We tried two different implementations using spring-data-elasticsearch: Criterias and QueryBuilders.

Criteria queries are only for simple cases and are not approriate for nested queries, so we removed that implementation.

Additionally we used Spring Java Configuration which starts an embedded Elasticsearch instance.

Just run the JUnit test FoodTruckServiceImplTest.

#What works / not works Currently the LIKE search for description in FoodTruck works.

The search by TimeRange works.

The search geo_distance in location works.

About

Testproject for discussing nested search with spring-data-elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages