mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Also replaced the PercolatorQueryRegistry with the new PercolatorQueryCache. The PercolatorFieldMapper stores the rewritten form of each percolator query's xcontext in a binary doc values field. This make sure that the query rewrite happens only during indexing (some queries for example fetch shapes, terms in remote indices) and the speed up the loading of the queries in the percolator query cache. Because the percolator now works inside the search infrastructure a number of features (sorting fields, pagination, fetch features) are available out of the box. The following feature requests are automatically implemented via this refactoring: Closes #10741 Closes #7297 Closes #13176 Closes #13978 Closes #11264 Closes #10741 Closes #4317
36 lines
956 B
Plaintext
36 lines
956 B
Plaintext
[[specialized-queries]]
|
|
|
|
== Specialized queries
|
|
|
|
This group contains queries which do not fit into the other groups:
|
|
|
|
<<query-dsl-mlt-query,`more_like_this` query>>::
|
|
|
|
This query finds documents which are similar to the specified text, document,
|
|
or collection of documents.
|
|
|
|
<<query-dsl-template-query,`template` query>>::
|
|
|
|
The `template` query accepts a Mustache template (either inline, indexed, or
|
|
from a file), and a map of parameters, and combines the two to generate the
|
|
final query to execute.
|
|
|
|
<<query-dsl-script-query,`script` query>>::
|
|
|
|
This query allows a script to act as a filter. Also see the
|
|
<<query-dsl-function-score-query,`function_score` query>>.
|
|
|
|
<<query-dsl-percolator-query,`percolator` query>>::
|
|
|
|
This query finds queries that are stored as documents that match with
|
|
the specified document.
|
|
|
|
include::mlt-query.asciidoc[]
|
|
|
|
include::template-query.asciidoc[]
|
|
|
|
include::script-query.asciidoc[]
|
|
|
|
include::percolator-query.asciidoc[]
|
|
|