I'd like to implement a filter/search feature in my application using Lucene. Querying Lucene index gives me a Hits instance, which is nothing more than a list of Documents matching ...
Hits
Document
Can any one suggest me the best way to get Hits( no of occurrences ) of a word per document in Lucene?..
I am able to find the total number of hits, but I wan't to find out the number of hits per document. Thanks.
How can I get the number of Hits per document in Lucene in Java. I have
IndexReader reader; reader = IndexReader.open(FSDirectory.open(new File(index)), true); Searcher ...