elasticsearch/docs/reference/query-languages/query-dsl/specialized-queries.md
Craig Taverner 94cad286bc
Restructure query-languages docs files for clarity (#124797)
In a few previous PR's we restructured the ES|QL docs to make it possible to generate them dynamically.

This PR just moves a few files around to make the query languages docs easier to work with, and a little more organized like the ES|QL docs.

A bit part of this was setting up redirects to the new locations, so other repo's could correctly link to the elasticsearch docs.
2025-03-17 17:58:58 +01:00

45 lines
2.1 KiB
Markdown

---
mapped_pages:
- https://www.elastic.co/guide/en/elasticsearch/reference/current/specialized-queries.html
---
# Specialized queries [specialized-queries]
This group contains queries which do not fit into the other groups:
[`distance_feature` query](/reference/query-languages/query-dsl/query-dsl-distance-feature-query.md)
: A query that computes scores based on the dynamically computed distances between the origin and documents' `date`, `date_nanos`, and `geo_point` fields. It is able to efficiently skip non-competitive hits.
[`more_like_this` query](/reference/query-languages/query-dsl/query-dsl-mlt-query.md)
: This query finds documents which are similar to the specified text, document, or collection of documents.
[`percolate` query](/reference/query-languages/query-dsl/query-dsl-percolate-query.md)
: This query finds queries that are stored as documents that match with the specified document.
[`rank_feature` query](/reference/query-languages/query-dsl/query-dsl-rank-feature-query.md)
: A query that computes scores based on the values of numeric features and is able to efficiently skip non-competitive hits.
[`script` query](/reference/query-languages/query-dsl/query-dsl-script-query.md)
: This query allows a script to act as a filter. Also see the [`function_score` query](/reference/query-languages/query-dsl/query-dsl-function-score-query.md).
[`script_score` query](/reference/query-languages/query-dsl/query-dsl-script-score-query.md)
: A query that allows to modify the score of a sub-query with a script.
[`wrapper` query](/reference/query-languages/query-dsl/query-dsl-wrapper-query.md)
: A query that accepts other queries as json or yaml string.
[`pinned` query](/reference/query-languages/query-dsl/query-dsl-pinned-query.md)
: A query that promotes selected documents over others matching a given query.
[`rule` query](/reference/query-languages/query-dsl/query-dsl-rule-query.md)
: A query that supports applying query-based contextual rules, defined using the [Query Rules API](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-query_rules), to a given query.