{"id":26276308,"url":"https://github.com/nasruddin/elasticsearch-reactive-spring-data","last_synced_at":"2025-07-07T01:36:48.760Z","repository":{"id":68094979,"uuid":"43629508","full_name":"Nasruddin/elasticsearch-reactive-spring-data","owner":"Nasruddin","description":":trophy: A very basic sample starter application for Elasticsearch using Reactive Spring Data","archived":false,"fork":false,"pushed_at":"2023-04-09T15:57:44.000Z","size":22479,"stargazers_count":80,"open_issues_count":0,"forks_count":46,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-04-17T14:11:53.089Z","etag":null,"topics":["docker","docker-compse","elastic","elastic-server","elasticsearch","non-blocking","reactive","reactive-programming","search-engine","spring","spring-boot","spring-data","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nasruddin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-04T08:12:00.000Z","updated_at":"2024-05-02T04:59:29.847Z","dependencies_parsed_at":"2023-04-23T10:47:09.995Z","dependency_job_id":null,"html_url":"https://github.com/Nasruddin/elasticsearch-reactive-spring-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nasruddin%2Felasticsearch-reactive-spring-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nasruddin%2Felasticsearch-reactive-spring-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nasruddin%2Felasticsearch-reactive-spring-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nasruddin%2Felasticsearch-reactive-spring-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nasruddin","download_url":"https://codeload.github.com/Nasruddin/elasticsearch-reactive-spring-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252761927,"owners_count":21800224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compse","elastic","elastic-server","elasticsearch","non-blocking","reactive","reactive-programming","search-engine","spring","spring-boot","spring-data","springboot"],"created_at":"2025-03-14T11:17:36.442Z","updated_at":"2025-05-06T20:22:34.799Z","avatar_url":"https://github.com/Nasruddin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Engine\n:trophy: Sample Elasticsearch engine using Reactive Spring Data.\n\n## Feature\n* Read CSV and persist data in your elasticsearch cluster\n* Add, search and filter data\n* Basic operation to play around with elastic cluster\n* Application fully reactive and non blocking\n\n### For High Level REST Client; please refer [this repository - Elasticsearch High Level Client](https://github.com/Nasruddin/spring-elasticsearch-rest-high-level-client)\n\n## Requirement\n* Java 8+ \n* Docker Compose\n* ElasticVue: Elasticsearch Firefox Extension\n\n## Note\nPlease download ElasticSearch of 2.4.x if you are using Spring Boot 1.5.x. If you don't use correct versions then you should\nget following error:\n```\njava.lang.IllegalStateException: Received message from unsupported version: [2.0.0] minimal compatible version is: [5.0.0]\n```\nAlso, if you update Spring Boot to 2.x.x please download/run elasticsearch 6.8.3 version. If not you might face following issue:\n```\nfailed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: \nNone of the configured nodes are available: [{#transport#-1}{uWHhZacNR9mbfojQOayyAg}{127.0.0.1}{127.0.0.1:9300}]\n```\n\n###### Be careful! If you are migrating to elasticsearch to 8.5.0 or higher version. You will run into different kind of issue. Make sure you \nmigrate first to elastic 7.17.0 and then elastic 8.5.0 [Official Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html)\n\n## Running the application using docker-compose\n\n* Make the run.bash file executable for the current user\n```\nchmod u+x run.bash\n```\n\n* Run/start the application using run.bash\n```\n./run.bash start\n```\n\n## Running the application outside docker\n\n* Install and run Elasticsearch Server 8.5.0\n\nRefer the official [link](https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html) to download and install elastic stack on your machine.\n\n* You can also use docker-compose to install elasticsearch,\n```\ncd docker \ndocker compose -f docker-compose-elastic.yml up\n```\n* Build the project and create an Image out of it\n```\nmvn spring-boot:run\n```\n\n* Open browser and hit localhost:9200, and you should see below response\n```\n{\n    name: \"elasticsearch\",\n    cluster_name: \"docker-cluster\",\n    cluster_uuid: \"3yvjtNl7TaWuSMK7qWB79g\",\n    version: {\n    number: \"8.5.0\",\n    build_flavor: \"default\",\n    build_type: \"docker\",\n    build_hash: \"c94b4700cda13820dad5aa74fae6db185ca5c304\",\n    build_date: \"2022-10-24T16:54:16.433628434Z\",\n    build_snapshot: false,\n    lucene_version: \"9.4.1\",\n    minimum_wire_compatibility_version: \"7.17.0\",\n    minimum_index_compatibility_version: \"7.0.0\"\n    },\n    tagline: \"You Know, for Search\"\n}\n```\n\n\n* Once elasticsearch server and application starts successfully, open swagger UI using http://localhost:8888/swagger-ui/index.html\n\n\n\n![Alt text](https://github.com/Nasruddin/elasticsearch-spring-boot-spring-data/blob/master/instruction/swagger1.png?raw=true \"Optional Title\")\n\n* Execute /movie/generate under movie-resource to populate your elasticsearch engine. As soon as you execute the resource; you should be able to see data in GUI for elasticsearch, in my ElasticVue for firefox. \nRefer below image:\n\n![Alt text](https://github.com/Nasruddin/elasticsearch-spring-boot-spring-data/blob/master/instruction/data.png?raw=true \"Optional Title\")\n\n* Now you should have enough data to play around with. Also, you can persist your own data.\n\n\n## Extra Points\nAdditional endpoints exposed to get elastic details and clearing indices.\n* http://localhost:8888/elastic-cluster/clear-indices\n* http://localhost:8888/elastic-cluster/info\n\n### WIP \n* More APIs to be added\n* Test containers \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasruddin%2Felasticsearch-reactive-spring-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasruddin%2Felasticsearch-reactive-spring-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasruddin%2Felasticsearch-reactive-spring-data/lists"}