Expand description

Search APIs are used to search and aggregate data stored in Elasticsearch indices and data streams. For an overview and related tutorials, see Search your data.

Most search APIs support multi-target syntax, with the exception of the explain API.

https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html

Re-exports§

Modules§

  • An aggregation summarizes your data as metrics, statistics, or other analytics.
  • Highlighters enable you to get highlighted snippets from one or more fields in your search results so you can show users where the query matches are.
  • A k-nearest neighbor (kNN) search finds the k nearest vectors to a query vector, as measured by a similarity metric.
  • Value types accepted by leaf query clauses
  • Allows constructing Elasticsearch search query.
  • Allows you to execute a search query and get back search hits that match the query.
  • Rescore clause to run second query over original one results and that way give more accuracy for final results https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-rescore.html
  • You can specify a runtime_mappings section in a search request to create runtime fields that exist only as part of the query. You specify a script as part of the runtime_mappings section, just as you would if adding a runtime field to the mappings.
  • You can use the script_fields parameter to retrieve a script evaluation (based on different fields) for each hit.
  • Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on a per field level, with special field name for _score to sort by score, and _doc to sort by index order.
  • Suggests similar looking terms based on a provided text by using a suggester.

Structs§

Enums§