How to index a document in Elasticsearch - Spring Data Elasticsearch - Part 2

Опубликовано: 06 Июнь 2021
на канале: Lilium Code
16,531
229

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 create an index without using annotations and add some data to it. When creating an index we apply mappings and settings all with use of integrated rest client.
In addition we index some data to created index and demonstrate how to do it without use of ElasticsearchRepository class.

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/vehicle
http://localhost:9200/vehicle/_settings
http://localhost:9200/vehicle/_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