Fixing documentation for Wildcard in term-level queries section for Query DSL (#5197)
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
This commit is contained in:
parent
7404281e0f
commit
3af32575ba
|
@ -14,7 +14,7 @@ Operator | Description
|
|||
:--- | :---
|
||||
`*` | Matches zero or more characters.
|
||||
`?` | Matches any single character.
|
||||
`case_insensitive` | If `true`, the wildcard query is case insensitive. If `false`, the wildcard query is case sensitive. Optional. Default is `true` (case insensitive).
|
||||
`case_insensitive` | If `true`, the wildcard query is case insensitive. If `false`, the wildcard query is case sensitive. Default is `false` (case sensitive).
|
||||
|
||||
For a case-sensitive search for terms that start with `H` and end with `Y`, use the following request:
|
||||
|
||||
|
@ -48,7 +48,7 @@ GET _search
|
|||
"wildcard": {
|
||||
"<field>": {
|
||||
"value": "patt*rn",
|
||||
...
|
||||
...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,9 +61,9 @@ The `<field>` accepts the following parameters. All parameters except `value` ar
|
|||
Parameter | Data type | Description
|
||||
:--- | :--- | :---
|
||||
`value` | String | The wildcard pattern used for matching terms in the field specified in `<field>`.
|
||||
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
|
||||
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
|
||||
`case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping).
|
||||
`rewrite` | String | Determines how OpenSearch rewrites and scores multi-term queries. Valid values are `constant_score`, `scoring_boolean`, `constant_score_boolean`, `top_terms_N`, `top_terms_boost_N`, and `top_terms_blended_freqs_N`. Default is `constant_score`.
|
||||
|
||||
If [`search.allow_expensive_queries`]({{site.url}}{{site.baseurl}}/query-dsl/index/#expensive-queries) is set to `false`, wildcard queries are not run.
|
||||
{: .important}
|
||||
{: .important}
|
||||
|
|
Loading…
Reference in New Issue