Searching with Elasticsearch
Written by
Updated at May 13, 2024
Warning
Yandex Managed Service for Elasticsearch is unavailable as of April 11, 2024.
You can create an OpenSearch cluster in Yandex Cloud as an alternative to Elasticsearch.
Elasticsearch acts both as a document storage and a tool for searching and analyzing data in the documents using:
- Structured queries similar to SQL queries: to find documents with a set of fields that meet the specified conditions.
- Full text queries: to find a certain string in the documents and sort the results by relevance. These queries also allow you to use additional search functions, including autocomplete and search for phrases and similar strings. To learn more about full-text search, see the Elasticsearch documentation
. - Complex queries that combine the above types of queries.
In Managed Service for Elasticsearch, you can perform all these types of queries using the following tools:
- Request JSON
written in Elasticsearch QueryDSL . - Requests URI
in which a Lucene query string is provided in the GET parameter:?q=<query_string>
. - SQL queries
. Elasticsearch fully supports SQL queries without any intermediary between itself and SQL.
Search features in Elasticsearch include the following:
- You can run search within a specific index in a cluster or across multiple indexes.
- Asynchronous search
is supported for large queries that can be performed over a long period of time.
To learn more about search options, see the Elasticsearch documentation