2015-06-03 19:59:22 -04:00
|
|
|
[[full-text-queries]]
|
|
|
|
== Full text queries
|
|
|
|
|
2019-03-11 12:36:43 -04:00
|
|
|
The full text queries enable you to search <<analysis,analyzed text fields>> such as the
|
|
|
|
body of an email. The query string is processed using the same analyzer that was applied to
|
|
|
|
the field during indexing.
|
2015-06-03 19:59:22 -04:00
|
|
|
|
|
|
|
The queries in this group are:
|
|
|
|
|
2019-07-18 10:18:11 -04:00
|
|
|
<<query-dsl-intervals-query,`intervals` query>>::
|
|
|
|
A full text query that allows fine-grained control of the ordering and
|
|
|
|
proximity of matching terms.
|
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
<<query-dsl-match-query,`match` query>>::
|
2019-07-18 10:18:11 -04:00
|
|
|
The standard query for performing full text queries, including fuzzy matching
|
|
|
|
and phrase or proximity queries.
|
2015-06-03 19:59:22 -04:00
|
|
|
|
2019-07-18 10:18:11 -04:00
|
|
|
<<query-dsl-match-bool-prefix-query,`match_bool_prefix` query>>::
|
|
|
|
Creates a `bool` query that matches each term as a `term` query, except for
|
|
|
|
the last term, which is matched as a `prefix` query
|
2015-06-03 19:59:22 -04:00
|
|
|
|
2016-05-10 06:18:21 -04:00
|
|
|
<<query-dsl-match-query-phrase,`match_phrase` query>>::
|
2019-07-18 10:18:11 -04:00
|
|
|
Like the `match` query but used for matching exact phrases or word proximity matches.
|
2016-05-10 06:18:21 -04:00
|
|
|
|
|
|
|
<<query-dsl-match-query-phrase-prefix,`match_phrase_prefix` query>>::
|
2019-07-18 10:18:11 -04:00
|
|
|
Like the `match_phrase` query, but does a wildcard search on the final word.
|
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
<<query-dsl-multi-match-query,`multi_match` query>>::
|
2019-07-18 10:18:11 -04:00
|
|
|
The multi-field version of the `match` query.
|
2015-06-03 19:59:22 -04:00
|
|
|
|
2018-06-27 04:08:28 -04:00
|
|
|
<<query-dsl-common-terms-query,`common` terms query>>::
|
2015-06-03 19:59:22 -04:00
|
|
|
|
|
|
|
A more specialized query which gives more preference to uncommon words.
|
|
|
|
|
|
|
|
<<query-dsl-query-string-query,`query_string` query>>::
|
2019-07-18 10:18:11 -04:00
|
|
|
Supports the compact Lucene <<query-string-syntax,query string syntax>>,
|
|
|
|
allowing you to specify AND|OR|NOT conditions and multi-field search
|
|
|
|
within a single query string. For expert users only.
|
2015-06-03 19:59:22 -04:00
|
|
|
|
2018-06-27 04:08:28 -04:00
|
|
|
<<query-dsl-simple-query-string-query,`simple_query_string` query>>::
|
2019-07-18 10:18:11 -04:00
|
|
|
A simpler, more robust version of the `query_string` syntax suitable
|
|
|
|
for exposing directly to users.
|
2015-06-03 19:59:22 -04:00
|
|
|
|
2018-12-14 10:14:00 -05:00
|
|
|
|
2019-07-18 10:18:11 -04:00
|
|
|
include::intervals-query.asciidoc[]
|
2018-12-14 10:14:00 -05:00
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
include::match-query.asciidoc[]
|
|
|
|
|
2019-07-18 10:18:11 -04:00
|
|
|
include::match-bool-prefix-query.asciidoc[]
|
|
|
|
|
2016-04-05 08:16:43 -04:00
|
|
|
include::match-phrase-query.asciidoc[]
|
|
|
|
|
|
|
|
include::match-phrase-prefix-query.asciidoc[]
|
|
|
|
|
2015-06-03 19:59:22 -04:00
|
|
|
include::multi-match-query.asciidoc[]
|
|
|
|
|
|
|
|
include::common-terms-query.asciidoc[]
|
|
|
|
|
|
|
|
include::query-string-query.asciidoc[]
|
|
|
|
|
2019-07-18 10:18:11 -04:00
|
|
|
include::simple-query-string-query.asciidoc[]
|