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
IOException
public void close() throws IOException
IOException
public String[] search(org.apache.lucene.search.Query q, int n) throws IOException
IOException
public org.apache.lucene.document.Document retrieve(int docID) throws IOException
IOException
public org.apache.lucene.search.Query parseKeywordQuery(String keywordQuery) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
org.apache.lucene.queryparser.flexible.core.QueryNodeException
public org.apache.lucene.search.Query parseJsonQuery(String JsonQuery) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
org.apache.lucene.queryparser.flexible.core.QueryNodeException
Copyright © 2014. All rights reserved.