Class RankEvalMetricDetail
java.lang.Object
org.opensearch.client.opensearch._global.rank_eval.RankEvalMetricDetail
- All Implemented Interfaces:
ToJsonp
public final class RankEvalMetricDetail extends java.lang.Object implements ToJsonp
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRankEvalMetricDetail.BuilderBuilder forRankEvalMetricDetail. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RankEvalMetricDetail>DESERIALIZERJson deserializer for RankEvalMetricDetail -
Constructor Summary
Constructors Modifier Constructor Description protectedRankEvalMetricDetail(RankEvalMetricDetail.Builder builder) -
Method Summary
Modifier and Type Method Description java.util.List<RankEvalHitItem>hits()The hits section shows a grouping of the search results with their supplied ratings API name:hitsjava.util.Map<java.lang.String,java.util.Map<java.lang.String,jakarta.json.JsonValue>>metricDetails()The metric_details give additional information about the calculated quality metric (e.g.java.lang.NumbermetricScore()The metric_score in the details section shows the contribution of this query to the global quality metric score API name:metric_scoreprotected static voidsetupRankEvalMetricDetailDeserializer(DelegatingDeserializer<RankEvalMetricDetail.Builder> op)voidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidtoJsonpInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.util.List<UnratedDocument>unratedDocs()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 for RankEvalMetricDetail
-
-
Constructor Details
-
Method Details
-
metricScore
public java.lang.Number metricScore()The metric_score in the details section shows the contribution of this query to the global quality metric score API name:metric_score -
unratedDocs
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 documents API name:unrated_docs -
hits
The hits section shows a grouping of the search results with their supplied ratings API name:hits -
metricDetails
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,jakarta.json.JsonValue>> metricDetails()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 results API name:metric_details -
toJsonp
Serialize this object to JSON. -
toJsonpInternal
-
setupRankEvalMetricDetailDeserializer
protected static void setupRankEvalMetricDetailDeserializer(DelegatingDeserializer<RankEvalMetricDetail.Builder> op)
-