I have to types of documents :
- News :
- Firms :
I want, for each firm, to count the number of time its name appears in the News.
I could write a program in python to do that ( and probably in painless ) but is there a way to do it as a query ? I am really junior in elasticsearch.
Thanks in advance