简体   繁体   中英

How to fetch all hits in lucene.net

I want to fetch all hits from lucene. Is there any wild card character which fetches all records?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM