Hi,
I am trying to use both a regexp and a terms query in the body of my query, and can't figure out how to make it work.
Goal:
query: {
regexp: {
'canonicalUrl.keyword': {
value: '.*targetString.*'
},
},
terms: {
'metros.keyword': ['atlanta-ga']
}
}
It works with one or the other, but not together. I get a parsing_exception
I have tried wrapping in a bool and filter, which also hasn't worked. Anyone have any suggestions, or know whether or not this is possible?