Package org.apache.maven.index
Class IndexerField
- java.lang.Object
-
- org.apache.maven.index.IndexerField
-
public class IndexerField extends java.lang.Object
Holds 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.FieldType
ANALYZED_NOT_STORED
Indexed, tokenized, not stored.static org.apache.lucene.document.FieldType
ANALYZED_STORED
Indexed, tokenized, stored.private org.apache.lucene.document.FieldType
fieldType
private java.lang.String
key
static org.apache.lucene.document.FieldType
KEYWORD_NOT_STORED
Indexed, not tokenized, not stored.static org.apache.lucene.document.FieldType
KEYWORD_STORED
Indexed, not tokenized, stored.private Field
ontology
private IndexerFieldVersion
version
-
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.FieldType
getFieldType()
java.lang.String
getKey()
Field
getOntology()
IndexerFieldVersion
getVersion()
boolean
isIndexed()
boolean
isKeyword()
boolean
isStored()
org.apache.lucene.document.Field
toField(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)
-
-