How to fetch all hits in lucene.net
-
16-09-2019 - |
Question
I want to fetch all hits from lucene. Is there any wild card character which fetches all records?
Solution
Might this class in Lucene.Net serve your purpose? MatchAllDocsQuery
OTHER TIPS
It worked. Thank You.
The code goes like this:
searcher = new Lucene.Net.Search.IndexSearcher(IndexPath);
Lucene.Net.Search.MatchAllDocsQuery objMatchAll = new Lucene.Net.Search.MatchAllDocsQuery();
Lucene.Net.Search.Hits hits = searcher.Search(objMatchAll);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow