How to use pagination - Spring Data Elasticsearch - Part 7

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 use pagination with elasticsearch.

Boolean query:
A query that matches documents matching boolean combinations of other queries. The bool query maps to Lucene BooleanQuery. It is built using one or more boolean clauses, each clause with a typed occurrence. The occurrence types are:

Java API:

Source code:

This videos commit:

Experience the search:

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

I want to think you a lot for this videos, it is so important, you explain very well and you covered all what we could need when developing an application, thanks again

nadjahkara
Автор

Thank you so much for creating this tutorial! It was really helpful in teaching me the usage of Elasticsearch.

seereal
Автор

To be 101% lacked the aggregations :)
But, really great videos!!!

arilson.santos
Автор

thanks. I hope another lesson like aggregation in elasticsearch.

naylin
Автор

Great playlist! 💕
Can you please add a video on Scroll API and search after?
Thanks in advance 👋🏿

mdnisar
Автор

Looks like with case when "page" is set to 1 and "size" is set to 2, I get empty results. Because according to the logic "from" would be 2 and "size" is 2. But we should get 1 document

AbhiMaheshwaram
Автор

How about the Person class which was created with annotations?
What is handled automatically by spring boot and what is not when we do not manage the indices by ourselves?
Could you make a video about the same operations over Person class.

Also, another video with relational data could be also very useful.
Say we have a manttoone relation between 2 entitites.

And for the next stage, it could be handling both springdata jpa and elasticsearch together maybe?

HasanEkinKurucuk
Автор

excuse me sir I'm the new elasticsearch here Can we search the text by using percentage?

bunnaretsary
Автор

What is you have 1mil records? This will not work since from is max 10 000.

nikola
visit shbcf.ru