Good morning,
Is it possible to use match_phrase to count the occurrence of the phrase per document and only return results if the phrase count in the document in greater than 1?
{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"logComments.content": "IF DEEMED VULNERABLE FROM COMPLETION OF THRIVE THEN REMEMBER TO FLAG INCIDENT AS VULNERABLE"
}
}
]
}
}
}
So in a data table for example, the result would only be shown for documents where "IF DEEMED VULNERABLE FROM COMPLETION OF THRIVE THEN REMEMBER TO FLAG INCIDENT AS VULNERABLE" appears more than once.