Hey,
I want to look for documents who has field x OR field y.
I can't use bool:should because i'm using a bool:filter in the same query..
my current query:
GET /testing/_search?size=200
{
"query": {
"bool": {
"filter":[
{"regexp": {
"look_for_regex.keyword": "some_regex" }},
{"exists":{"field":"x"}}
]
}
}
}
the current query only looks for field x, how should i filter the documents who has field x or y?