How to connect to Elasticsearch from Spring Boot Application - Spring Data Elasticsearch - Part 1

Опубликовано: 05 Июнь 2021
на канале: Lilium Code
56,154
731

In this tutorial series we take a look at Elasticsearch and see how we can use it together with Spring Boot. To make things easier for use we use awesome Spring Data Elasticsearch. For all of those who are not familiar with it, Elasticsearch is a distributed, free and open search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. Elasticsearch is built on Apache Lucene and was first released in 2010 by Elasticsearch N.V. (now known as Elastic). Known for its simple REST APIs, distributed nature, speed, and scalability, Elasticsearch is the central component of the Elastic Stack, a set of free and open tools for data ingestion, enrichment, storage, analysis, and visualization. Commonly referred to as the ELK Stack (after Elasticsearch, Logstash, and Kibana), the Elastic Stack now includes a rich collection of lightweight shipping agents known as Beats for sending data to Elasticsearch.

In this video we take a look how we can configure and connect to running elasticsearch instance and also how we can create an index with some mappings and settings and index some data.

Java API:
https://www.elastic.co/guide/en/elast...

Source code:
https://github.com/liliumbosniacum/el...

This videos commit:
https://github.com/liliumbosniacum/el...

Experience the search:
https://www.elastic.co/about/story-of...

URLs accessed in the tutorial:
http://localhost:9200
http://localhost:9200/_cat/indices
http://localhost:9200/person
http://localhost:9200/person/_settings
http://localhost:9200/person/_search?pretty=true&q=*:*

Intro by Audionautix is licensed under a Creative Commons Attribution 4.0 licence. https://creativecommons.org/licenses/
Artist: http://audionautix.com/

#java #springboot #elasticsearch