Skip to content

Commit 4daf983

Browse files
authored
Docs: Fix indentation for query options (#129395)
1 parent d487eb5 commit 4daf983

File tree

4 files changed

+25
-41
lines changed

4 files changed

+25
-41
lines changed

docs/reference/query-languages/query-dsl/query-dsl-combined-fields-query.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ See [Use synonyms with match query](/reference/query-languages/query-dsl/query-d
7676

7777
`operator`
7878
: (Optional, string) Boolean logic used to interpret text in the `query` value. Valid values are:
79-
80-
`or` (Default)
81-
: For example, a `query` value of `database systems` is interpreted as `database OR systems`.
82-
83-
`and`
84-
: For example, a `query` value of `database systems` is interpreted as `database AND systems`.
79+
- `or` (Default)
80+
For example, a `query` value of `database systems` is interpreted as `database OR systems`.
81+
- `and`
82+
For example, a `query` value of `database systems` is interpreted as `database AND systems`.
8583

8684

8785
`minimum_should_match`
@@ -90,12 +88,10 @@ See [Use synonyms with match query](/reference/query-languages/query-dsl/query-d
9088

9189
`zero_terms_query`
9290
: (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are:
93-
94-
`none` (Default)
95-
: No documents are returned if the `analyzer` removes all tokens.
96-
97-
`all`
98-
: Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
91+
- `none` (Default)
92+
No documents are returned if the `analyzer` removes all tokens.
93+
- `all`
94+
Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
9995

10096
See [Zero terms query](/reference/query-languages/query-dsl/query-dsl-match-query.md#query-dsl-match-query-zero) for an example.
10197

docs/reference/query-languages/query-dsl/query-dsl-match-query.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Returns documents that match a provided text, number, date or boolean value. The
1111

1212
The `match` query is the standard query for performing a full-text search, including options for fuzzy matching.
1313

14-
`Match` will also work against [semantic_text](/reference/elasticsearch/mapping-reference/semantic-text.md) fields.
14+
`Match` will also work against [semantic_text](/reference/elasticsearch/mapping-reference/semantic-text.md) fields.
1515
As `semantic_text` does not support lexical text search, `match` queries against `semantic_text` fields will automatically perform the correct semantic search.
1616
Because of this, options that specifically target lexical search such as `fuzziness` or `analyzer` will be ignored.
1717

@@ -83,26 +83,20 @@ If the `fuzziness` parameter is not `0`, the `match` query uses a `fuzzy_rewrite
8383

8484
`operator`
8585
: (Optional, string) Boolean logic used to interpret text in the `query` value. Valid values are:
86-
87-
`OR` (Default)
88-
: For example, a `query` value of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
89-
90-
`AND`
91-
: For example, a `query` value of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
92-
86+
- `OR` (Default)
87+
For example, a `query` value of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
88+
- `AND`
89+
For example, a `query` value of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
9390

9491
`minimum_should_match`
9592
: (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.
9693

97-
9894
`zero_terms_query`
9995
: (Optional, string) Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter. Valid values are:
100-
101-
`none` (Default)
102-
: No documents are returned if the `analyzer` removes all tokens.
103-
104-
`all`
105-
: Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
96+
- `none` (Default)
97+
No documents are returned if the `analyzer` removes all tokens.
98+
- `all`
99+
Returns all documents, similar to a [`match_all`](/reference/query-languages/query-dsl/query-dsl-match-all-query.md) query.
106100

107101
See [Zero terms query](#query-dsl-match-query-zero) for an example.
108102

docs/reference/query-languages/query-dsl/query-dsl-query-string-query.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,12 @@ are only [normalized](/reference/text-analysis/normalizers.md).
8585

8686
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.
8787

88-
8988
`default_operator`
9089
: (Optional, string) Default boolean logic used to interpret text in the query string if no operators are specified. Valid values are:
91-
92-
`OR` (Default)
93-
: For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
94-
95-
`AND`
96-
: For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
97-
90+
- `OR` (Default)
91+
For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
92+
- `AND`
93+
For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
9894

9995
`enable_position_increments`
10096
: (Optional, Boolean) If `true`, enable position increments in queries constructed from a `query_string` search. Defaults to `true`.

docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ There is a limit on the number of fields that can be queried at once. It is defi
4949

5050
`default_operator`
5151
: (Optional, string) Default boolean logic used to interpret text in the query string if no operators are specified. Valid values are:
52-
53-
`OR` (Default)
54-
: For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
55-
56-
`AND`
57-
: For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
52+
- `OR` (Default)
53+
For example, a query string of `capital of Hungary` is interpreted as `capital OR of OR Hungary`.
54+
- `AND`
55+
For example, a query string of `capital of Hungary` is interpreted as `capital AND of AND Hungary`.
5856

5957

6058
`analyze_wildcard`

0 commit comments

Comments
 (0)