public class PatternRuleQueryBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_NAME |
static String |
FIELD_NAME_LOWERCASE |
static String |
SOURCE_FIELD_NAME |
| Constructor and Description |
|---|
PatternRuleQueryBuilder(Language language,
org.apache.lucene.search.IndexSearcher indexSearcher) |
| 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 static final String FIELD_NAME
public static final String SOURCE_FIELD_NAME
public static final String FIELD_NAME_LOWERCASE
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