Package org.apache.maven.index
Class IndexerField
- java.lang.Object
-
- org.apache.maven.index.IndexerField
-
public class IndexerField extends java.lang.ObjectHolds basic information about Indexer field, how it is stored. To keep this centralized, and not spread across code. Since Lucene 2.x, the field names are encoded, so please use real chatty names instead of cryptic chars!
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.lucene.document.FieldTypeANALYZED_NOT_STOREDIndexed, tokenized, not stored.static org.apache.lucene.document.FieldTypeANALYZED_STOREDIndexed, tokenized, stored.private org.apache.lucene.document.FieldTypefieldTypeprivate java.lang.Stringkeystatic org.apache.lucene.document.FieldTypeKEYWORD_NOT_STOREDIndexed, not tokenized, not stored.static org.apache.lucene.document.FieldTypeKEYWORD_STOREDIndexed, not tokenized, stored.private Fieldontologyprivate IndexerFieldVersionversion
-
Constructor Summary
Constructors Constructor Description IndexerField(Field ontology, IndexerFieldVersion version, java.lang.String key, java.lang.String description, org.apache.lucene.document.FieldType fieldType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.document.FieldTypegetFieldType()java.lang.StringgetKey()FieldgetOntology()IndexerFieldVersiongetVersion()booleanisIndexed()booleanisKeyword()booleanisStored()org.apache.lucene.document.FieldtoField(java.lang.String value)
-
-
-
Field Detail
-
ontology
private final Field ontology
-
version
private final IndexerFieldVersion version
-
key
private final java.lang.String key
-
fieldType
private final org.apache.lucene.document.FieldType fieldType
-
KEYWORD_NOT_STORED
public static final org.apache.lucene.document.FieldType KEYWORD_NOT_STORED
Indexed, not tokenized, not stored.
-
KEYWORD_STORED
public static final org.apache.lucene.document.FieldType KEYWORD_STORED
Indexed, not tokenized, stored.
-
ANALYZED_NOT_STORED
public static final org.apache.lucene.document.FieldType ANALYZED_NOT_STORED
Indexed, tokenized, not stored.
-
ANALYZED_STORED
public static final org.apache.lucene.document.FieldType ANALYZED_STORED
Indexed, tokenized, stored.
-
-
Constructor Detail
-
IndexerField
public IndexerField(Field ontology, IndexerFieldVersion version, java.lang.String key, java.lang.String description, org.apache.lucene.document.FieldType fieldType)
-
-
Method Detail
-
getOntology
public Field getOntology()
-
getVersion
public IndexerFieldVersion getVersion()
-
getKey
public java.lang.String getKey()
-
getFieldType
public org.apache.lucene.document.FieldType getFieldType()
-
isIndexed
public boolean isIndexed()
-
isKeyword
public boolean isKeyword()
-
isStored
public boolean isStored()
-
toField
public org.apache.lucene.document.Field toField(java.lang.String value)
-
-