Mercurial Hosting > nabble
view src/nabble/model/lucene/LuceneSearcher.java @ 62:4674ed7d56df default tip
remove n2
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 30 Sep 2023 20:25:29 -0600 |
parents | 7ecd1a4ef557 |
children |
line wrap: on
line source
package nabble.model.lucene; import org.apache.lucene.document.Document; import org.apache.lucene.index.CorruptIndexException; import java.io.IOException; import org.apache.lucene.search.Query; import org.apache.lucene.search.Filter; import org.apache.lucene.search.Collector; import org.apache.lucene.search.TopDocs; import org.apache.lucene.search.TopFieldDocs; import org.apache.lucene.search.Sort; public interface LuceneSearcher { public void close() throws IOException; public void search(Query query,Collector results) throws IOException; public void search(Query query,Filter filter,Collector results) throws IOException; public TopDocs search(Query query,int n) throws IOException; public TopDocs search(Query query,Filter filter,int n) throws IOException; public TopFieldDocs search(Query query,Filter filter,int n,Sort sort) throws IOException; public Document doc(int i) throws CorruptIndexException, IOException; }