Count of keywords (search criteria) during search operations

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

for example if text search is Java then all the documents which are having
Java as text are returned. Is it possible to get the count of key words
passed as search criteria in each document? In this example what is the
count of Java keyword in documents returned in search results. If yes what
is the java api available to get the count of keyword.

Thanks in advance.


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit