Specialized queries
This group contains queries which do not fit into the other groups:
-
distance_featurequery - A query that computes scores based on the dynamically computed distances between the origin and documents'
date,date_nanos, andgeo_pointfields. It is able to efficiently skip non-competitive hits. -
more_like_thisquery - This query finds documents which are similar to the specified text, document, or collection of documents.
-
percolatequery - This query finds queries that are stored as documents that match with the specified document.
-
rank_featurequery - A query that computes scores based on the values of numeric features and is able to efficiently skip non-competitive hits.
-
scriptquery - This query allows a script to act as a filter. Also see the
function_scorequery. -
script_scorequery - A query that allows to modify the score of a sub-query with a script.
-
wrapperquery - A query that accepts other queries as json or yaml string.
-
pinnedquery - A query that promotes selected documents over others matching a given query.
-
rulequery - A query that supports applying query-based contextual rules, defined using the Query Rules API, to a given query.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/specialized-queries.html