Skip to content

Small example of Spring-Es integration (Spring Boot + Elasticsearch 5.4.0 + MongoDb)

License

Notifications You must be signed in to change notification settings

chirkovd/spring-es-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-es-sample

Small example of Spring-Es integration (Spring Boot + Elasticsearch 5.4.0 + MongoDb)

Application shows how to use spring-es project: store data in MongoDB, add index to Elasticsearch. Results loading with active filters and limits is implemented by ES engine, after that results are fetched from MongoDb by id and merged with ES results.

Spring Data for Elasticsearch is not used, because it doesn't support ES 5.* version now.

How to run application

    # prepare application executable jar for docker build
    mvn package
    
    # start docker containers: application, es and mongo
    docker-compose up -d

If application is started successfully, then http://localhost:8080/items/info should return common information about predefined filters, sorting fields, available page sizes and current data count - should be 0.

About

Small example of Spring-Es integration (Spring Boot + Elasticsearch 5.4.0 + MongoDb)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published