From 0ca0822f0aa879fc2d859f79d3252ff3037fa704 Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Tue, 10 Dec 2024 11:23:48 -0500 Subject: [PATCH] Indexing the object_id for clickthrough rates. Signed-off-by: jzonthemtn --- .../opensearch/eval/judgments/opensearch/OpenSearchHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/opensearch-search-quality-evaluation-plugin/src/main/java/org/opensearch/eval/judgments/opensearch/OpenSearchHelper.java b/opensearch-search-quality-evaluation-plugin/src/main/java/org/opensearch/eval/judgments/opensearch/OpenSearchHelper.java index 8832c72..9d257b1 100644 --- a/opensearch-search-quality-evaluation-plugin/src/main/java/org/opensearch/eval/judgments/opensearch/OpenSearchHelper.java +++ b/opensearch-search-quality-evaluation-plugin/src/main/java/org/opensearch/eval/judgments/opensearch/OpenSearchHelper.java @@ -276,6 +276,7 @@ public void indexClickthroughRates(final Map> clic jsonMap.put("clicks", clickthroughRate.getClicks()); jsonMap.put("events", clickthroughRate.getEvents()); jsonMap.put("ctr", clickthroughRate.getClickthroughRate()); + jsonMap.put("object_id", clickthroughRate.getObjectId()); final IndexRequest indexRequest = new IndexRequest(INDEX_QUERY_DOC_CTR).id(UUID.randomUUID().toString()).source(jsonMap);