Package org.apache.solr.legacy
Class LegacyField
- java.lang.Object
-
- org.apache.lucene.document.Field
-
- org.apache.solr.legacy.LegacyField
-
- All Implemented Interfaces:
org.apache.lucene.index.IndexableField
- Direct Known Subclasses:
LegacyDoubleField
,LegacyFloatField
,LegacyIntField
,LegacyLongField
@Deprecated public class LegacyField extends org.apache.lucene.document.Field
Deprecated.Please switch toPointValues
insteadField extension with support for legacy numerics
-
-
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 nametype
- 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 interfaceorg.apache.lucene.index.IndexableField
- Overrides:
tokenStream
in classorg.apache.lucene.document.Field
-
setTokenStream
public void setTokenStream(org.apache.lucene.analysis.TokenStream tokenStream)
Deprecated.- Overrides:
setTokenStream
in classorg.apache.lucene.document.Field
-
-