Class RankEvalMetricDetail
java.lang.Object
co.elastic.clients.elasticsearch.core.rank_eval.RankEvalMetricDetail
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<RankEvalMetricDetail>
Json deserializer forRankEvalMetricDetail
-
Method Summary
Modifier and TypeMethodDescriptionfinal List<RankEvalHitItem>
hits()
Required - The hits section shows a grouping of the search results with their supplied ratingsRequired - The metric_details give additional information about the calculated quality metric (e.g.final double
Required - The metric_score in the details section shows the contribution of this query to the global quality metric scorestatic RankEvalMetricDetail
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
final List<UnratedDocument>
Required - The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didn’t have a ratings value.
-
Field Details
-
_DESERIALIZER
Json deserializer forRankEvalMetricDetail
-
-
Method Details
-
of
public static RankEvalMetricDetail of(Function<RankEvalMetricDetail.Builder, ObjectBuilder<RankEvalMetricDetail>> fn) -
metricScore
public final double metricScore()Required - The metric_score in the details section shows the contribution of this query to the global quality metric scoreAPI name:
metric_score
-
unratedDocs
Required - The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didn’t have a ratings value. This can be used to ask the user to supply ratings for these documentsAPI name:
unrated_docs
-
hits
Required - The hits section shows a grouping of the search results with their supplied ratingsAPI name:
hits
-
metricDetails
Required - The metric_details give additional information about the calculated quality metric (e.g. how many of the retrieved documents were relevant). The content varies for each metric but allows for better interpretation of the resultsAPI name:
metric_details
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupRankEvalMetricDetailDeserializer
protected static void setupRankEvalMetricDetailDeserializer(ObjectDeserializer<RankEvalMetricDetail.Builder> op)
-