Module org.elasticsearch.server
Package org.elasticsearch.script.field
Interface DocValuesScriptFieldFactory
- All Superinterfaces:
 ScriptFieldFactory
- All Known Implementing Classes:
 AbstractLongDocValuesField,BaseKeywordDocValuesField,BinaryDenseVectorDocValuesField,BinaryDocValuesField,BitBinaryDenseVectorDocValuesField,BitKnnDenseVectorDocValuesField,BitRankVectorsDocValuesField,BooleanDocValuesField,ByteBinaryDenseVectorDocValuesField,ByteDocValuesField,ByteKnnDenseVectorDocValuesField,ByteRankVectorsDocValuesField,DateMillisDocValuesField,DateNanosDocValuesField,DelegateDocValuesField,DenseVectorDocValuesField,DoubleDocValuesField,FlattenedDocValuesField,FloatDocValuesField,FloatRankVectorsDocValuesField,GeoPointDocValuesField,HalfFloatDocValuesField,IntegerDocValuesField,IpDocValuesField,KeywordDocValuesField,KnnDenseVectorDocValuesField,LongDocValuesField,MatchOnlyTextDocValuesField,PointDocValuesField,RankVectorsDocValuesField,ScaledFloatDocValuesField,SeqNoDocValuesField,ShortDocValuesField,TextDocValuesField,VersionDocValuesField
This interface is used to mark classes that generate
 both 
Field and ScriptDocValues for use in a script.- 
Method Summary
Modifier and TypeMethodDescriptionvoidsetNextDocId(int docId) Set the current document ID.Returns aScriptDocValuesof the appropriate type for this field.Methods inherited from interface org.elasticsearch.script.field.ScriptFieldFactory
toScriptField 
- 
Method Details
- 
setNextDocId
Set the current document ID.- Throws:
 IOException
 - 
toScriptDocValues
ScriptDocValues<?> toScriptDocValues()Returns aScriptDocValuesof the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedocvariable. 
 -