Case insensitive parameter for wildcard query (#4914)
* added missing documentation about case_insensitive param in wildcard query Signed-off-by: Mark Cohen <markcoh@amazon.com> * Update _query-dsl/query-dsl/term.md Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> * Update _query-dsl/query-dsl/term.md Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> * Update _query-dsl/query-dsl/term.md Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> * Update _query-dsl/term/wildcard.md Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> * Update _query-dsl/term/wildcard.md Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> --------- Signed-off-by: Mark Cohen <markcoh@amazon.com> Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Co-authored-by: Mark Cohen <markcoh@amazon.com>
This commit is contained in:
parent
871f8abcfa
commit
63059ce9e2
|
@ -14,8 +14,9 @@ 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).
|
||||
|
||||
To search for terms that start with `H` and end with `Y`, use the following request:
|
||||
For a case-sensitive search for terms that start with `H` and end with `Y`, use the following request:
|
||||
|
||||
```json
|
||||
GET shakespeare/_search
|
||||
|
@ -23,7 +24,8 @@ GET shakespeare/_search
|
|||
"query": {
|
||||
"wildcard": {
|
||||
"speaker": {
|
||||
"value": "H*Y"
|
||||
"value": "H*Y",
|
||||
"case_insensitive": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue