mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Lucene uses or
by default (#50987)
This commit is contained in:
parent
dfcf29afd3
commit
7f924f96ae
1 changed files with 5 additions and 6 deletions
|
@ -19,14 +19,13 @@ they appear. This means documents with "quick brown fox" will match, but so will
|
|||
to search for a phrase.
|
||||
|
||||
The query parser will no longer split on whitespace. Multiple search terms must be separated by explicit
|
||||
boolean operators. Note that boolean operators are not case sensitive.
|
||||
boolean operators. Lucene will combine search terms with an `or` by default, so `response:200 extension:php` would
|
||||
become `response:200 or extension:php` in KQL. This will match documents where response matches 200, extension matches php, or both.
|
||||
Note that boolean operators are not case sensitive.
|
||||
|
||||
`response:200 extension:php` in lucene would become `response:200 and extension:php`.
|
||||
This will match documents where response matches 200 and extension matches php.
|
||||
We can make terms required by using `and`.
|
||||
|
||||
We can make terms optional by using `or`.
|
||||
|
||||
`response:200 or extension:php` will match documents where response matches 200, extension matches php, or both.
|
||||
`response:200 and extension:php` will match documents where response matches 200 and extension matches php.
|
||||
|
||||
By default, `and` has a higher precedence than `or`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue