Module org.elasticsearch.xcore
Class RankedDocsResults
java.lang.Object
org.elasticsearch.xpack.core.inference.results.RankedDocsResults
- All Implemented Interfaces:
NamedWriteable,Writeable,ChunkedToXContent,InferenceServiceResults
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA record representing a document that has been ranked by the cohere rerank APINested classes/interfaces inherited from interface org.elasticsearch.inference.InferenceServiceResults
InferenceServiceResults.ResultNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()static org.elasticsearch.xcontent.ConstructingObjectParser<RankedDocsResults, Void> createParser(boolean ignoreUnknownFields) booleaninthashCode()toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) List<? extends InferenceResults> voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.inference.InferenceServiceResults
isStreaming, publisher
-
Field Details
-
NAME
- See Also:
-
RERANK
-
RERANK_FIELD
public static final org.elasticsearch.xcontent.ParseField RERANK_FIELD
-
-
Constructor Details
-
RankedDocsResults
-
RankedDocsResults
- Throws:
IOException
-
RankedDocsResults
public RankedDocsResults()
-
-
Method Details
-
createParser
public static org.elasticsearch.xcontent.ConstructingObjectParser<RankedDocsResults,Void> createParser(boolean ignoreUnknownFields) -
getRankedDocs
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent- Specified by:
toXContentChunkedin interfaceInferenceServiceResults
-
getWriteableName
- Specified by:
getWriteableNamein interfaceInferenceServiceResults- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceInferenceServiceResults- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
transformToCoordinationFormat
- Specified by:
transformToCoordinationFormatin interfaceInferenceServiceResults
-
asMap
- Specified by:
asMapin interfaceInferenceServiceResults
-
toString
-
equals
-
hashCode
public int hashCode()
-