public class Searcher extends Object
| 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 Searcher(org.apache.lucene.store.Directory directory)
throws IOException
IOExceptionpublic 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