special-queries.asciidoc 1.5 KB

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