special-queries.asciidoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [[specialized-queries]]
  2. == Specialized queries
  3. This group contains queries which do not fit into the other groups:
  4. <<query-dsl-distance-feature-query,`distance_feature` query>>::
  5. A query that computes scores based on the dynamically computed distances
  6. between the origin and documents' date, date_nanos and geo_point fields.
  7. It is able to efficiently skip non-competitive hits.
  8. <<query-dsl-mlt-query,`more_like_this` query>>::
  9. This query finds documents which are similar to the specified text, document,
  10. or collection of documents.
  11. <<query-dsl-percolate-query,`percolate` query>>::
  12. This query finds queries that are stored as documents that match with
  13. the specified document.
  14. <<query-dsl-rank-feature-query,`rank_feature` query>>::
  15. A query that computes scores based on the values of numeric features and is
  16. able to efficiently skip non-competitive hits.
  17. <<query-dsl-script-query,`script` query>>::
  18. This query allows a script to act as a filter. Also see the
  19. <<query-dsl-function-score-query,`function_score` query>>.
  20. <<query-dsl-script-score-query,`script_score` query>>::
  21. A query that allows to modify the score of a sub-query with a script.
  22. <<query-dsl-wrapper-query,`wrapper` query>>::
  23. A query that accepts other queries as json or yaml string.
  24. <<query-dsl-pinned-query,`pinned` query>>::
  25. A query that promotes selected documents over others matching a given query.
  26. include::distance-feature-query.asciidoc[]
  27. include::mlt-query.asciidoc[]
  28. include::percolate-query.asciidoc[]
  29. include::rank-feature-query.asciidoc[]
  30. include::script-query.asciidoc[]
  31. include::script-score-query.asciidoc[]
  32. include::wrapper-query.asciidoc[]
  33. include::pinned-query.asciidoc[]