How to obtain documents in ElasticSearch (GET - POST method)

Опубликовано: 21 Октябрь 2024
на канале: Ingenio Empresa
1,678
25

To obtain one or more documents in Elastic Search, we can use the GET method. However, when you need to send a body in the request and for some reason you have restrictions to send that body with a GET method, you can use the POST method that works exactly the same.

Today I tell you how to get the documents in an index in ElasticSearch, how to get a specific document from its id and how to get the mapping of an index.

Content:

00:03 - GET and POST difference when fetching documents from ElasticSearch.
00:40 - Get documents from an index
01:09 - Fetch all documents from multiple indexes
02:18 - Get index mapping
03:48 - Check if a document exists with HEAD method
04:15 - Get a specific document with its id
05:10 - Source to get document without metadata
05:39 - Query params to fetch documents

Watch all the videos of the elastic search course:    • Elastic Search PASO a PASO (2023)  

Facebook: https://goo.gl/HDLFyn
Twitter: https://goo.gl/pcFziM

#elasticsearch