Can be reproduced in first demo of https://elastic.github.io/eui/#/forms/search-bar
This is fine
✅ Input: status:open
✅ ES QS: +status:open
✅ ES Query DSL:
{
"bool": {
"must": [
{
"match": {
"status": {
"query": "open",
"operator": "and"
}
}
}
]
}
}
This is not fine
✅ Input: (status:open)
✅ ES QS: +(status:open)
❎ ES Query DSL: the bool.must.bool.should clause has an array inside another array
{
"bool": {
"must": [
{
"bool": {
"should": [
[
{
"bool": {
"must": [
{
"match": {
"status": {
"query": "open",
"operator": "and"
}
}
}
]
}
}
]
]
}
}
]
}
}
Adding more terms e.g. (status:open OR status:closed) doesn't seem to have an effect here
Can be reproduced in first demo of https://elastic.github.io/eui/#/forms/search-bar
This is fine
✅ Input:
status:open✅ ES QS:
+status:open✅ ES Query DSL:
{ "bool": { "must": [ { "match": { "status": { "query": "open", "operator": "and" } } } ] } }This is not fine
✅ Input:
(status:open)✅ ES QS:
+(status:open)❎ ES Query DSL: the
bool.must.bool.shouldclause has an array inside another array{ "bool": { "must": [ { "bool": { "should": [ [ { "bool": { "must": [ { "match": { "status": { "query": "open", "operator": "and" } } } ] } } ] ] } } ] } }Adding more terms e.g.
(status:open OR status:closed)doesn't seem to have an effect here