Mercurial Hosting > nabble
view src/nabble/model/lucene/LuceneSearcher.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
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; }