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