Class LegacyField

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.document.Field

        org.apache.lucene.document.Field.Store
    • Field Summary

      • Fields inherited from class org.apache.lucene.document.Field

        fieldsData, name, tokenStream, type
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyField​(String name, LegacyFieldType type)
      Deprecated.
      Expert: creates a field with no initial value.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void setTokenStream​(org.apache.lucene.analysis.TokenStream tokenStream)
      Deprecated.
       
      org.apache.lucene.analysis.TokenStream tokenStream​(org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.analysis.TokenStream reuse)
      Deprecated.
       
      • Methods inherited from class org.apache.lucene.document.Field

        binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, stringValue, tokenStreamValue, toString
    • Constructor Detail

      • LegacyField

        public LegacyField​(String name,
                           LegacyFieldType type)
        Deprecated.
        Expert: creates a field with no initial value. Intended only for custom LegacyField subclasses.
        Parameters:
        name - field name
        type - field type
        Throws:
        IllegalArgumentException - if either the name or type is null.
    • Method Detail

      • tokenStream

        public org.apache.lucene.analysis.TokenStream tokenStream​(org.apache.lucene.analysis.Analyzer analyzer,
                                                                  org.apache.lucene.analysis.TokenStream reuse)
        Deprecated.
        Specified by:
        tokenStream in interface org.apache.lucene.index.IndexableField
        Overrides:
        tokenStream in class org.apache.lucene.document.Field
      • setTokenStream

        public void setTokenStream​(org.apache.lucene.analysis.TokenStream tokenStream)
        Deprecated.
        Overrides:
        setTokenStream in class org.apache.lucene.document.Field