-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>docsGeneral docs changesGeneral docs changes
Description
Describe the issue:
On Elasticsearch 5.x, in a query_string query, we can use syntax field:(v1 v2 v3) which is the same than field:(v1 OR v2 OR v3)
It does not work anymore with elasticsearch 6.1 on keyword properties : no results returned although field:(v1 OR v2 OR v3) syntax works fine.
It looks like a regression.
Elasticsearch version : 6.1.0 and 6.1.3
JVM version : 1.8.0_131
OS version : Linux RHEL 6
Steps to reproduce:
In Kibana Console :
PUT index1/doc/1
{
"f1": "v1"
}
POST index1/_search
{
"query": {
"query_string": {
"query": "f1.keyword:(v1 v2)"
}
}
}
=> returns nothing
POST index1/_search
{
"query": {
"query_string": {
"query": "f1.keyword:(v1 OR v2)"
}
}
}
=> returns the doc
POST index1/_search
{
"query": {
"query_string": {
"query": "f1:(v1 v2)"
}
}
}
=> returns the doc
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>docsGeneral docs changesGeneral docs changes