mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Docs: Fix indentation for query options (#129395)
This commit is contained in:
parent
d487eb5b7c
commit
4daf983ea9
4 changed files with 25 additions and 41 deletions
|
@ -76,12 +76,10 @@ See [Use synonyms with match query](/reference/query-languages/query-dsl/query-d
|
||||||
|
|
||||||
`operator`
|
`operator`
|
||||||
: (Optional, string) Boolean logic used to interpret text in the `query` value. Valid values are:
|
: (Optional, string) Boolean logic used to interpret text in the `query` value. Valid values are:
|
||||||
|
- `or` (Default)
|
||||||
`or` (Default)
|
For example, a `query` value of `database systems` is interpreted as `database OR systems`.
|
||||||
: For example, a `query` value of `database systems` is interpreted as `database OR systems`.
|
- `and`
|
||||||
|
For example, a `query` value of `database systems` is interpreted as `database AND systems`.
|
||||||
`and`
|
|
||||||
: For example, a `query` value of `database systems` is interpreted as `database AND systems`.
|
|
||||||
|
|
||||||
|
|
||||||
`minimum_should_match`
|
`minimum_should_match`
|
||||||
|
@ -90,12 +88,10 @@ See [Use synonyms with match query](/reference/query-languages/query-dsl/query-d
|
||||||
|
|
||||||
`zero_terms_query`
|
`zero_terms_query`
|
||||||
: (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are:
|
: (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are:
|
||||||
|
- `none` (Default)
|
||||||
`none` (Default)
|
No documents are returned if the `analyzer` removes all tokens.
|
||||||
: No documents are returned if the `analyzer` removes all tokens.
|
- `all`
|
||||||
|
Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
|
||||||
`all`
|
|
||||||
: Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
|
|
||||||
|
|
||||||
See [Zero terms query](/reference/query-languages/query-dsl/query-dsl-match-query.md#query-dsl-match-query-zero) for an example.
|
See [Zero terms query](/reference/query-languages/query-dsl/query-dsl-match-query.md#query-dsl-match-query-zero) for an example.
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ Returns documents that match a provided text, number, date or boolean value. The
|
||||||
|
|
||||||
The `match` query is the standard query for performing a full-text search, including options for fuzzy matching.
|
The `match` query is the standard query for performing a full-text search, including options for fuzzy matching.
|
||||||
|
|
||||||
`Match` will also work against [semantic_text](/reference/elasticsearch/mapping-reference/semantic-text.md) fields.
|
`Match` will also work against [semantic_text](/reference/elasticsearch/mapping-reference/semantic-text.md) fields.
|
||||||
As `semantic_text` does not support lexical text search, `match` queries against `semantic_text` fields will automatically perform the correct semantic search.
|
As `semantic_text` does not support lexical text search, `match` queries against `semantic_text` fields will automatically perform the correct semantic search.
|
||||||
Because of this, options that specifically target lexical search such as `fuzziness` or `analyzer` will be ignored.
|
Because of this, options that specifically target lexical search such as `fuzziness` or `analyzer` will be ignored.
|
||||||
|
|
||||||
|
@ -83,26 +83,20 @@ If the `fuzziness` parameter is not `0`, the `match` query uses a `fuzzy_rewrite
|
||||||
|
|
||||||
`operator`
|
`operator`
|
||||||
: (Optional, string) Boolean logic used to interpret text in the `query` value. Valid values are:
|
: (Optional, string) Boolean logic used to interpret text in the `query` value. Valid values are:
|
||||||
|
- `OR` (Default)
|
||||||
`OR` (Default)
|
For example, a `query` value of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
|
||||||
: For example, a `query` value of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
|
- `AND`
|
||||||
|
For example, a `query` value of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
|
||||||
`AND`
|
|
||||||
: For example, a `query` value of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
|
|
||||||
|
|
||||||
|
|
||||||
`minimum_should_match`
|
`minimum_should_match`
|
||||||
: (Optional, string) Minimum number of clauses that must match for a document to be returned. See the [`minimum_should_match` parameter](/reference/query-languages/query-dsl/query-dsl-minimum-should-match.md) for valid values and more information.
|
: (Optional, string) Minimum number of clauses that must match for a document to be returned. See the [`minimum_should_match` parameter](/reference/query-languages/query-dsl/query-dsl-minimum-should-match.md) for valid values and more information.
|
||||||
|
|
||||||
|
|
||||||
`zero_terms_query`
|
`zero_terms_query`
|
||||||
: (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are:
|
: (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are:
|
||||||
|
- `none` (Default)
|
||||||
`none` (Default)
|
No documents are returned if the `analyzer` removes all tokens.
|
||||||
: No documents are returned if the `analyzer` removes all tokens.
|
- `all`
|
||||||
|
Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
|
||||||
`all`
|
|
||||||
: Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
|
|
||||||
|
|
||||||
See [Zero terms query](#query-dsl-match-query-zero) for an example.
|
See [Zero terms query](#query-dsl-match-query-zero) for an example.
|
||||||
|
|
||||||
|
|
|
@ -85,16 +85,12 @@ are only [normalized](/reference/text-analysis/normalizers.md).
|
||||||
|
|
||||||
Boost values are relative to the default value of `1.0`. A boost value between `0` and `1.0` decreases the relevance score. A value greater than `1.0` increases the relevance score.
|
Boost values are relative to the default value of `1.0`. A boost value between `0` and `1.0` decreases the relevance score. A value greater than `1.0` increases the relevance score.
|
||||||
|
|
||||||
|
|
||||||
`default_operator`
|
`default_operator`
|
||||||
: (Optional, string) Default boolean logic used to interpret text in the query string if no operators are specified. Valid values are:
|
: (Optional, string) Default boolean logic used to interpret text in the query string if no operators are specified. Valid values are:
|
||||||
|
- `OR` (Default)
|
||||||
`OR` (Default)
|
For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
|
||||||
: For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
|
- `AND`
|
||||||
|
For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
|
||||||
`AND`
|
|
||||||
: For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
|
|
||||||
|
|
||||||
|
|
||||||
`enable_position_increments`
|
`enable_position_increments`
|
||||||
: (Optional, Boolean) If `true`, enable position increments in queries constructed from a `query_string` search. Defaults to `true`.
|
: (Optional, Boolean) If `true`, enable position increments in queries constructed from a `query_string` search. Defaults to `true`.
|
||||||
|
|
|
@ -49,12 +49,10 @@ There is a limit on the number of fields that can be queried at once. It is defi
|
||||||
|
|
||||||
`default_operator`
|
`default_operator`
|
||||||
: (Optional, string) Default boolean logic used to interpret text in the query string if no operators are specified. Valid values are:
|
: (Optional, string) Default boolean logic used to interpret text in the query string if no operators are specified. Valid values are:
|
||||||
|
- `OR` (Default)
|
||||||
`OR` (Default)
|
For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
|
||||||
: For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
|
- `AND`
|
||||||
|
For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
|
||||||
`AND`
|
|
||||||
: For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
|
|
||||||
|
|
||||||
|
|
||||||
`analyze_wildcard`
|
`analyze_wildcard`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue