From 1371db5a4f407b33a573b94f0759cadc8f98b289 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Fri, 3 Jan 2025 20:17:57 +0000 Subject: [PATCH] add some global-phase tracing --- .../main/java/com/yahoo/prelude/cluster/ClusterSearcher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java index 4ea9facc138e..593c0aa80c79 100644 --- a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java +++ b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java @@ -240,6 +240,9 @@ private Result perSchemaSearch(String schema, Query query) { } Result result = schema2Searcher.get(schema).search(schema, query); if (useGlobalPhase) { + if (query.getTrace().isTraceable(3)) { + query.trace("Use global-phase from [" + schema + "] to re-rank " + rerankCount + " hits", 3); + } globalPhaseRanker.rerankHits(query, result, schema); result.hits().trim(wantOffset, wantHits); query.setOffset(wantOffset);