How to count each of the occurrences of a term PER DOCUMENT in apache SOLR?

Viewed 661

Good! I need to get the number of occurrences of a search term for each document stored in Solr (I have indexed "PDF" documents).
That is, if you have the following information:

  • document A: 3 times the word "house" appears.
  • document B: the word "house" appears 4 times.
  • document C: the word "house" appears 1 times.

So, if I search for "house", I need to obtain that for document A it appears 3 times, for B 4 times and for C 1 time. And in total 8 times (3 + 4 + 1). How can I do this in a query from HTTP, that is "'http: // localhost: 8983 / solr / ......."?
Thank you very much, Regards.

1 Answers
Related