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) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Query |
buildRelaxedQuery(PatternRule 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)
public org.apache.lucene.search.Query buildRelaxedQuery(PatternRule rule) throws UnsupportedPatternRuleException
UnsupportedPatternRuleException - if no query could be created for the rule