2013-08-28 19:24:34 -04:00
|
|
|
[[query-dsl-queries]]
|
|
|
|
== Queries
|
|
|
|
|
|
|
|
As a general rule, queries should be used instead of filters:
|
|
|
|
|
|
|
|
* for full text search
|
|
|
|
* where the result depends on a relevance score
|
|
|
|
|
|
|
|
include::queries/match-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/multi-match-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/bool-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/boosting-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/common-terms-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/constant-score-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/dis-max-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/filtered-query.asciidoc[]
|
|
|
|
|
2013-09-04 15:59:46 -04:00
|
|
|
include::queries/function-score-query.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::queries/fuzzy-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/geo-shape-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/has-child-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/has-parent-query.asciidoc[]
|
|
|
|
|
2013-09-04 15:59:46 -04:00
|
|
|
include::queries/ids-query.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::queries/indices-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/match-all-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/mlt-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/nested-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/prefix-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/query-string-query.asciidoc[]
|
|
|
|
|
2013-12-12 14:09:32 -05:00
|
|
|
include::queries/simple-query-string-query.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::queries/range-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/regexp-query.asciidoc[]
|
|
|
|
|
2015-04-30 23:31:31 -04:00
|
|
|
include::queries/span-containing-query.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::queries/span-first-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/span-multi-term-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/span-near-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/span-not-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/span-or-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/span-term-query.asciidoc[]
|
|
|
|
|
2015-04-30 23:31:31 -04:00
|
|
|
include::queries/span-within-query.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::queries/term-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/terms-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/top-children-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/wildcard-query.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/minimum-should-match.asciidoc[]
|
|
|
|
|
|
|
|
include::queries/multi-term-rewrite.asciidoc[]
|
2014-01-24 06:27:00 -05:00
|
|
|
|
|
|
|
include::queries/template-query.asciidoc[]
|