How to use range query - Spring Data Elasticsearch - Part 5

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 create a Range query and use it to filter some data based on indexed date.

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
Рекомендации по теме
Комментарии
Автор

Hi can you make video on aggregation query?

rajeshbhardwaju
Автор

can this be use to filter out anything other than Date?
like, i want to filter some products that have price from 69$ to 100$

Fubuckyy