public class SimpleSearcher extends Object
There is no specific configuration required for searching over fields indexed with the SIREn's posting format.
| Constructor and Description |
|---|
SimpleSearcher(File path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.search.Query |
parseJsonQuery(String JsonQuery) |
org.apache.lucene.search.Query |
parseKeywordQuery(String keywordQuery) |
org.apache.lucene.document.Document |
retrieve(int docID) |
String[] |
search(org.apache.lucene.search.Query q,
int n) |
public SimpleSearcher(File path) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic String[] search(org.apache.lucene.search.Query q, int n) throws IOException
IOExceptionpublic org.apache.lucene.document.Document retrieve(int docID)
throws IOException
IOExceptionpublic org.apache.lucene.search.Query parseKeywordQuery(String keywordQuery) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
org.apache.lucene.queryparser.flexible.core.QueryNodeExceptionpublic org.apache.lucene.search.Query parseJsonQuery(String JsonQuery) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
org.apache.lucene.queryparser.flexible.core.QueryNodeExceptionCopyright © 2014. All rights reserved.