public class Searcher extends Object
Indexer
for how to create the index.Constructor and Description |
---|
Searcher(org.apache.lucene.store.Directory directory) |
Searcher(org.apache.lucene.store.Directory directory,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
SearcherResult |
findRuleMatchesOnIndex(PatternRule rule,
Language language) |
SearcherResult |
findRuleMatchesOnIndex(PatternRule rule,
Language language,
String fieldName) |
int |
getDocCount() |
int |
getMaxHits() |
int |
getMaxSearchTimeMillis() |
int |
getSkipHits() |
static void |
main(String[] args) |
void |
setMaxHits(int maxHits) |
void |
setMaxSearchTimeMillis(int maxSearchTimeMillis) |
void |
setSkipHits(int skipHits) |
public Searcher(org.apache.lucene.store.Directory directory)
public Searcher(org.apache.lucene.store.Directory directory, String fieldName)
public int getDocCount() throws IOException
IOException
public int getMaxHits()
public void setMaxHits(int maxHits)
public int getSkipHits()
public void setSkipHits(int skipHits)
public int getMaxSearchTimeMillis()
public void setMaxSearchTimeMillis(int maxSearchTimeMillis)
public SearcherResult findRuleMatchesOnIndex(PatternRule rule, Language language) throws IOException, UnsupportedPatternRuleException
public SearcherResult findRuleMatchesOnIndex(PatternRule rule, Language language, String fieldName) throws IOException, UnsupportedPatternRuleException
IOException
UnsupportedPatternRuleException