Question

Je veux aller chercher tous les coups de Lucene. Y at-il caractère générique qui va chercher tous les documents?

Était-ce utile?

La solution

peut cette classe dans Lucene.Net servir votre but? MatchAllDocsQuery

Autres conseils

Il a travaillé. Merci.

Le code va comme ceci:

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);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top