Hi,
Is there a way to group by field1 only when field1 matches the following logic :
field1 contains ALL of the keywords in this list : [keyword1, keyword2, keyword3]
I have a working example for 1 keyword but I can't do it with more than 1:
"aggs": {
"xxx": {
"terms": {
"field": "field1",
"include": ".*keyword1.*"
}
}
}
I would like to implement the regexp on this stackoverflow discussion but it doesn't work because the regexp syntax of Lucene is different :