All Projects → Nasruddin → Elasticsearch Spring Boot Spring Data

Nasruddin / Elasticsearch Spring Boot Spring Data

🏆 Starter example for using Elasticsearch repository with Springboot

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Elasticsearch Spring Boot Spring Data

Microservice Monitoring
Monitor your Spring Boot application with the Elastic Stack all around
Stars: ✭ 114 (+75.38%)
Mutual labels:  elastic, elasticsearch, spring-boot
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+84203.08%)
Mutual labels:  elasticsearch, spring-boot, springboot
Springboot Templates
springboot和dubbo、netty的集成,redis mongodb的nosql模板, kafka rocketmq rabbit的MQ模板, solr solrcloud elasticsearch查询引擎
Stars: ✭ 100 (+53.85%)
Mutual labels:  elasticsearch, spring-boot, springboot
Spring Boot Leaning
Spring Boot 2.X 最全课程代码
Stars: ✭ 2,008 (+2989.23%)
Mutual labels:  elasticsearch, spring-boot, springboot
Spring Examples
SpringBoot Examples
Stars: ✭ 67 (+3.08%)
Mutual labels:  spring-data, elasticsearch, springboot
Klask Io
klask.io is an open source search engine for source code, live demo
Stars: ✭ 45 (-30.77%)
Mutual labels:  search-engine, elasticsearch, spring-boot
Spring Boot Quick
🌿 基于springboot的快速学习示例,整合自己遇到的开源框架,如:rabbitmq(延迟队列)、Kafka、jpa、redies、oauth2、swagger、jsp、docker、spring-batch、异常处理、日志输出、多模块开发、多环境打包、缓存cache、爬虫、jwt、GraphQL、dubbo、zookeeper和Async等等📌
Stars: ✭ 1,819 (+2698.46%)
Mutual labels:  elasticsearch, spring-boot, springboot
Pybbs
更实用的Java开发的社区(论坛),Better use of Java development community (forum)
Stars: ✭ 1,242 (+1810.77%)
Mutual labels:  spring-data, elasticsearch, spring-boot
Hibernate Springboot
Collection of best practices for Java persistence performance in Spring Boot applications
Stars: ✭ 589 (+806.15%)
Mutual labels:  spring-data, spring-boot, springboot
Php Es Mapper
An elasticsearch simple mapping ORM for php
Stars: ✭ 25 (-61.54%)
Mutual labels:  elastic, elasticsearch
Spring Boot Elasticsearch Lire Docker
Spring-boot+ElasticSearch+LIRE+SwaggerUI RESTful.
Stars: ✭ 7 (-89.23%)
Mutual labels:  elasticsearch, spring-boot
Flexsearch
Next-Generation full text search library for Browser and Node.js
Stars: ✭ 8,108 (+12373.85%)
Mutual labels:  search-engine, elasticsearch
Search Spring Boot Starter
ElasticSearch封装基于ES版本6.4.2,极大简化了ES操作难度
Stars: ✭ 23 (-64.62%)
Mutual labels:  elasticsearch, spring-boot
Vertx Embedded Springboot
Vert.x embeded Springboot
Stars: ✭ 19 (-70.77%)
Mutual labels:  spring-boot, springboot
Spring Reactive Sample
Spring 5 Reactive playground
Stars: ✭ 867 (+1233.85%)
Mutual labels:  spring-data, spring-boot
Angular Spring Data Rest Sample
Spring Boot based sample project for the https://github.com/guylabs/angular-spring-data-rest Angular module.
Stars: ✭ 18 (-72.31%)
Mutual labels:  spring-data, spring-boot
Elastic data
Elasticsearch datasets ready for bulk loading
Stars: ✭ 30 (-53.85%)
Mutual labels:  elastic, elasticsearch
Spring Jms
Spring JMS Tutorials
Stars: ✭ 42 (-35.38%)
Mutual labels:  spring-boot, springboot
Elasticsearchdemo
ElasticSearch+Springboot的例子,对本机的文本等文件进行全文检索
Stars: ✭ 18 (-72.31%)
Mutual labels:  elasticsearch, spring-boot
Spring Mvc Thymeleaf Crud
Spring MVC CRUD Application with Thymeleaf, HTML5, CSS3 and Bootstrap
Stars: ✭ 14 (-78.46%)
Mutual labels:  spring-data, spring-boot

Elasticsearch Spring Boot Spring Data

🏆 Starter example for using Elasticsearch repository with Springboot

DEPRECATED

TransportClient is deprecated as of Elasticsearch 7 and will be removed in Elasticsearch 8. Spring Data Elasticsearch will support the TransportClient as long as it is available in the used Elasticsearch version but has deprecated the classes using it since version 4.0.

For recommended High Level REST Client refer this repository : https://github.com/Nasruddin/spring-elasticsearch-rest-high-level-client

Requirement

  • Java 8
  • Docker
  • Head: Elasticsearch Chrome Extension

Note

Please 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 get following error:

java.lang.IllegalStateException: Received message from unsupported version: [2.0.0] minimal compatible version is: [5.0.0]

Also, if you are update Spring Boot to 2.x.x please download/run elasticsearch 6.8.3 version. If not you might face following issue:

failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: 
None of the configured nodes are available: [{#transport#-1}{uWHhZacNR9mbfojQOayyAg}{127.0.0.1}{127.0.0.1:9300}]

Running the sample app

  • Install and run Elastic Server 6.8.3
docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.8.3
  • Open browser and hit localhost:9300 and you should see below response
{
name: "x3oSjQ4",
cluster_name: "docker-cluster",
cluster_uuid: "SWR0yJPwRw2X0wNbq1R8pA",
    version: {
    number: "6.8.3",
    build_flavor: "default",
    build_type: "docker",
    build_hash: "0c48c0e",
    build_date: "2019-08-29T19:05:24.312154Z",
    build_snapshot: false,
    lucene_version: "7.7.0",
    minimum_wire_compatibility_version: "5.6.0",
    minimum_index_compatibility_version: "5.0.0"
    },
tagline: "You Know, for Search"
}
  • Now run Spring Boot application using below command
mvn spring-boot:run
  • Once application starts successfully, open Elastic plugin in Google Chrome.
  • You should be able to see our data being stored in elastic server. Refer image below

Alt text

  • Now open a REST Client or CURL. I am using Postman. And add some data to indices.

Alt text

Extra Points

Additional endpoints exposed to get elastic details and clearing indices.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].