How to apply sorting order - Spring Data Elasticsearch - Part 4

preview_player
Показать описание
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 apply sorting of one of the document field. In addition we add a date type.

Java API:

Source code:

This videos commit:

Experience the search:

URLs accessed in the tutorial:

Index vehicle:
POST = localhost:8080/api/vehicle
{
"id": "6",
"number": "123-655",
"name": "VW Passat",
"created": "2012-01-06"
}

#java #springboot #elasticsearch
Рекомендации по теме
Комментарии
Автор

Why don't use Spring Data and extends ElasticsearchRepository like in first video? What is advantage of such way? You have more control or what?

jalubiekiedyty
Автор

thanks, but it's a pity that resthighlevelclient elasticsearch already deprecated

NikolayMishin
Автор

Except the first part in this tutorial series, Are other videos using Spring data elasticsearch ?

ragavkb
Автор

how to short by name or other properties?

genprimabiocakti
Автор

Hi Can you please make some videos on paging also, and do some read and delete operation

rajeshbhardwaju
welcome to shbcf.ru