Count of keywords (search criteria) during search operations Elasticsearch

Hi Elasticsearch Team.

We are executing search operation using keywords in document content.
Search results returned list of documents matching the keywords in the
content.

Is it possible to get the count of how many keyword have appeared in a document?
for example if text search is Java then all the documents which are having
Java as text are returned. Also, we can get the count of Java in each document.
That will be great!

Thanks

can anyone help me ? :persevere:

Read this and specifically the "Also be patient" part.

Here you just pinged just 30 minutes after your first post!

May be this is what you are looking for: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html

1 Like

sorry about that :persevere:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.