I want to fetch all hits from lucene. Is there any wild card character which fetches all records?
How to fetch all hits in lucene.net
Show us what you've tried and describe how it hasn't worked, alternatively perhaps the Lucene documentation might be a good place to start? –
Struggle
Do you mean you want to return all documents from Lucene rather than all Hits? –
Struggle
Might this class in Lucene.Net serve your purpose? MatchAllDocsQuery
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);
Might this class in Lucene.Net serve your purpose? MatchAllDocsQuery
© 2022 - 2024 — McMap. All rights reserved.