Get the count of matched token in a document in elasticsearch regexp query


(Rahul Khandelwal) #1

Hi,

Will it be possible to get the total number of occurrences of a regex query in a document from elasticsearch.

The aggregation query provides doc count but I need how many times a pattern/regexp found in a document.


(system) #2