I am using Lucene.NET 4.8.0 or later versions. While doing search how do I get individual hit counts within each document
For example my search word is "word", the results I want is
Document x - 3 occurrences, Document y - 7 occurrences, Document z - 1 occurrences
Total occurrences = 11
I tried this and this answers but unable to get the results. Also the Lucene API is somewhat changed in latest version and I am unable to get the desired results. Can anyone give me a demo of working code ?