public class PatternRuleQueryBuilder extends Object
Constructor and Description |
---|
PatternRuleQueryBuilder(Language language,
org.apache.lucene.search.IndexSearcher indexSearcher) |
PatternRuleQueryBuilder(Language language,
org.apache.lucene.search.IndexSearcher indexSearcher,
String searchFieldName) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
buildRelaxedQuery(AbstractPatternRule rule)
Iterate over all elements, ignore those not supported, add the other ones to a BooleanQuery.
|
public PatternRuleQueryBuilder(Language language, org.apache.lucene.search.IndexSearcher indexSearcher)
public org.apache.lucene.search.Query buildRelaxedQuery(AbstractPatternRule rule) throws UnsupportedPatternRuleException
UnsupportedPatternRuleException
- if no query could be created for the rule