comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:7ecd1a4ef557
1 package nabble.model.lucene;
2
3 import org.apache.lucene.document.Document;
4 import org.apache.lucene.index.CorruptIndexException;
5 import java.io.IOException;
6 import org.apache.lucene.search.Query;
7 import org.apache.lucene.search.Filter;
8 import org.apache.lucene.search.Collector;
9 import org.apache.lucene.search.TopDocs;
10 import org.apache.lucene.search.TopFieldDocs;
11 import org.apache.lucene.search.Sort;
12
13
14 public interface LuceneSearcher {
15 public void close() throws IOException;
16 public void search(Query query,Collector results) throws IOException;
17 public void search(Query query,Filter filter,Collector results) throws IOException;
18 public TopDocs search(Query query,int n) throws IOException;
19 public TopDocs search(Query query,Filter filter,int n) throws IOException;
20 public TopFieldDocs search(Query query,Filter filter,int n,Sort sort) throws IOException;
21 public Document doc(int i) throws CorruptIndexException, IOException;
22 }