<commit_before>[[full-text-queries]]
== Full text queries

The high-level full text queries are usually used for running full text
queries on full text fields like the body of an email. They understand how the
field being queried is <<analysis,analyzed>> and will apply each field's
`analyzer` (or `search_analyzer`) to the query string before executing.

The queries in this group are:

<<query-dsl-match-query,`match` query>>::

    The standard query for performing full text queries, including fuzzy matching
    and phrase or proximity queries.

<<query-dsl-multi-match-query,`multi_match` query>>::

    The multi-field version of the `match` query.

<<query-dsl-common-terms-query,`common_terms` query>>::

    A more specialized query which gives more preference to uncommon words.

<<query-dsl-query-string-query,`query_string` query>>::

    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.

<<query-dsl-simple-query-string-query,`simple_query_string`>>::

    A simpler, more robust version of the `query_string` syntax suitable
    for exposing directly to users.

include::match-query.asciidoc[]

include::match-phrase-query.asciidoc[]

include::match-phrase-prefix-query.asciidoc[]

include::multi-match-query.asciidoc[]

include::common-terms-query.asciidoc[]

include::query-string-query.asciidoc[]

include::simple-query-string-query.asciidoc[]
<commit_msg>Update full-text-queries.asciidoc<commit_after>[[full-text-queries]]
== Full text queries

The high-level full text queries are usually used for running full text
queries on full text fields like the body of an email. They understand how the
field being queried is <<analysis,analyzed>> and will apply each field's
`analyzer` (or `search_analyzer`) to the query string before executing.

The queries in this group are:

<<query-dsl-match-query,`match` query>>::

    The standard query for performing full text queries, including fuzzy matching
    and phrase or proximity queries.

<<query-dsl-match-query-phrase,`match_phrase` query>>::

    Like the `match` query but used for matching exact phrases or word proximity matches.
    
<<query-dsl-match-query-phrase-prefix,`match_phrase_prefix` query>>::

    The poor man's _search-as-you-type_.  Like the `match_phrase` query, but does a wildcard search on the final word.
    
<<query-dsl-multi-match-query,`multi_match` query>>::

    The multi-field version of the `match` query.

<<query-dsl-common-terms-query,`common_terms` query>>::

    A more specialized query which gives more preference to uncommon words.

<<query-dsl-query-string-query,`query_string` query>>::

    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.

<<query-dsl-simple-query-string-query,`simple_query_string`>>::

    A simpler, more robust version of the `query_string` syntax suitable
    for exposing directly to users.

include::match-query.asciidoc[]

include::match-phrase-query.asciidoc[]

include::match-phrase-prefix-query.asciidoc[]

include::multi-match-query.asciidoc[]

include::common-terms-query.asciidoc[]

include::query-string-query.asciidoc[]

include::simple-query-string-query.asciidoc[]

{'fraction_non_alphanumeric': 0.10926088226701723, 'fraction_numerical': 0.0, 'mean_word_length': 4.764309764309765, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4734480', 'n_tokens_mistral': 1026, 'n_tokens_neox': 1006, 'n_words': 328}