Skip to content

Commit

Permalink
Merge pull request #33081 from vespa-engine/arnej/trace-before-global…
Browse files Browse the repository at this point in the history
…-phase

add some global-phase tracing
  • Loading branch information
geirst authored Jan 6, 2025
2 parents e642800 + 1371db5 commit dd396e5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dd396e5

Please sign in to comment.