Count of keywords (search criteria) during search operations Elasticsearch


(Websocket Server Face) #1

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


(Websocket Server Face) #2

can anyone help me ? :persevere:


(David Pilato) #3

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

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


(David Pilato) #4

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


(Websocket Server Face) #5

sorry about that :persevere:


(system) closed #6

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