2015-06-03 19:59:22 -04:00
|
|
|
[[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-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>>.
|
|
|
|
|
2018-12-19 10:18:53 -05:00
|
|
|
<<query-dsl-script-score-query,`script_score` query>>::
|
|
|
|
|
|
|
|
A query that allows to modify the score of a sub-query with a script.
|
|
|
|
|
2016-04-19 09:59:09 -04:00
|
|
|
<<query-dsl-percolate-query,`percolate` query>>::
|
2016-03-15 10:07:53 -04:00
|
|
|
|
|
|
|
This query finds queries that are stored as documents that match with
|
|
|
|
the specified document.
|
2015-06-03 19:59:22 -04:00
|
|
|
|
2019-01-24 19:18:48 -05:00
|
|
|
<<query-dsl-rank-feature-query,`rank_feature` query>>::
|
2018-05-23 02:55:21 -04:00
|
|
|
|
|
|
|
A query that computes scores based on the values of numeric features and is
|
|
|
|
able to efficiently skip non-competitive hits.
|
|
|
|
|
2019-03-20 09:24:41 -04:00
|
|
|
<<query-dsl-distance-feature-query,`distance_feature` query>>::
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-03-14 06:51:22 -04:00
|
|
|
<<query-dsl-wrapper-query,`wrapper` query>>::
|
|
|
|
|
|
|
|
A query that accepts other queries as json or yaml string.
|
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
include::mlt-query.asciidoc[]
|
|
|
|
|
|
|
|
include::script-query.asciidoc[]
|
|
|
|
|
2018-12-19 10:18:53 -05:00
|
|
|
include::script-score-query.asciidoc[]
|
|
|
|
|
2016-04-19 09:59:09 -04:00
|
|
|
include::percolate-query.asciidoc[]
|
2016-03-15 10:07:53 -04:00
|
|
|
|
2019-01-24 19:18:48 -05:00
|
|
|
include::rank-feature-query.asciidoc[]
|
2018-05-23 02:55:21 -04:00
|
|
|
|
2019-03-20 09:24:41 -04:00
|
|
|
include::distance-feature-query.asciidoc[]
|
|
|
|
|
2018-03-14 06:51:22 -04:00
|
|
|
include::wrapper-query.asciidoc[]
|