Class 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 Detail

      • ontology

        private final Field ontology
      • 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()
      • 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)