|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.analysis.FieldTypeDefinition
org.apache.blur.analysis.type.CustomFieldTypeDefinition
public abstract class CustomFieldTypeDefinition
Constructor Summary | |
---|---|
CustomFieldTypeDefinition()
|
Method Summary | |
---|---|
boolean |
checkSupportForCustomQuery()
By returning true this type will create Query objects from
FieldTypeDefinition.getCustomQuery(String) method where the entire string from the
query parser is passed to the method. |
boolean |
checkSupportForFuzzyQuery()
Custom query types do not support FuzzyQuery . |
boolean |
checkSupportForPrefixQuery()
Custom query types do not support PrefixQuery . |
boolean |
checkSupportForRegexQuery()
Custom query types do not support RegexQuery . |
boolean |
checkSupportForSorting()
|
boolean |
checkSupportForWildcardQuery()
Custom query types do not support WildcardQuery . |
org.apache.lucene.analysis.Analyzer |
getAnalyzerForIndex(String fieldName)
The getAnalyzerForIndex(String) should never be called for a
CustomFieldTypeDefinition because this type will create the
IndexableField objects from the
FieldTypeDefinition.getFieldsForColumn(String, Column) method or
FieldTypeDefinition.getFieldsForSubColumn(String, Column, String) method. |
org.apache.lucene.analysis.Analyzer |
getAnalyzerForQuery(String fieldName)
A KeywordAnalyzer is used to parse all the queries for
CustomFieldTypeDefinition types. |
org.apache.lucene.search.SortField |
getSortField(boolean reverse)
|
boolean |
isNumeric()
Checks whether this type is numeric or not. |
Methods inherited from class org.apache.blur.analysis.FieldTypeDefinition |
---|
configure, getAlternateFieldNames, getColumnName, getCustomQuery, getFamily, getFieldsForColumn, getFieldsForSubColumn, getFieldType, getName, getProperties, getSubColumnName, isFieldLessIndexed, isSortEnable, setColumnName, setFamily, setFieldLessIndexed, setFieldType, setProperties, setSortEnable, setSubColumnName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomFieldTypeDefinition()
Method Detail |
---|
public org.apache.lucene.analysis.Analyzer getAnalyzerForIndex(String fieldName)
getAnalyzerForIndex(String)
should never be called for a
CustomFieldTypeDefinition
because this type will create the
IndexableField
objects from the
FieldTypeDefinition.getFieldsForColumn(String, Column)
method or
FieldTypeDefinition.getFieldsForSubColumn(String, Column, String)
method.
getAnalyzerForIndex
in class FieldTypeDefinition
fieldName
- the field name to get the analyzer, this could be the base field
name or the alternative.
Analyzer
.
@{@link
- RuntimeException}.public final org.apache.lucene.analysis.Analyzer getAnalyzerForQuery(String fieldName)
KeywordAnalyzer
is used to parse all the queries for
CustomFieldTypeDefinition
types. That means that your query string
must contain all the parts of your query to be passed to the
FieldTypeDefinition.getCustomQuery(String)
method.
getAnalyzerForQuery
in class FieldTypeDefinition
fieldName
- the field name to get the analyzer, this could be the base field
name or the alternative.
KeywordAnalyzer
.public final boolean checkSupportForFuzzyQuery()
FuzzyQuery
.
checkSupportForFuzzyQuery
in class FieldTypeDefinition
public final boolean checkSupportForWildcardQuery()
WildcardQuery
.
checkSupportForWildcardQuery
in class FieldTypeDefinition
public final boolean checkSupportForPrefixQuery()
PrefixQuery
.
checkSupportForPrefixQuery
in class FieldTypeDefinition
public final boolean checkSupportForRegexQuery()
RegexQuery
.
checkSupportForRegexQuery
in class FieldTypeDefinition
public final boolean isNumeric()
NumericFieldTypeDefinition
instead of this
class.
isNumeric
in class FieldTypeDefinition
public final boolean checkSupportForCustomQuery()
Query
objects from
FieldTypeDefinition.getCustomQuery(String)
method where the entire string from the
query parser is passed to the method. FieldTypeDefinition.getCustomQuery(String)
method (true). If you want to use the getAnalyzerForIndex(String)
method to create your query, please extend TextFieldTypeDefinition
or FieldTypeDefinition
.
checkSupportForCustomQuery
in class FieldTypeDefinition
public boolean checkSupportForSorting()
checkSupportForSorting
in class FieldTypeDefinition
public org.apache.lucene.search.SortField getSortField(boolean reverse)
getSortField
in class FieldTypeDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |