From a0a4c9b7c743c46d9068619e1344f16c46c61610 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 6 Jun 2018 17:31:13 +0200 Subject: Use the elementId --- streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'streamingvisitors/src') diff --git a/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp b/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp index dd52c020042..b38ce7abfea 100644 --- a/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp +++ b/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp @@ -281,11 +281,11 @@ RankProcessor::unpackMatchData(MatchData &matchData) } if (tmd != 0) { // adjust so that the position for phrase terms equals the match for the first term - TermFieldMatchDataPosition pos(0, hit.wordpos() - terms[i].getPosAdjust(), + TermFieldMatchDataPosition pos(hit.elemId(), hit.wordpos() - terms[i].getPosAdjust(), hit.weight(), fieldLen); tmd->appendPosition(pos); - LOG(debug, "Append position(%u), weight(%d), tfmd.weight(%d)", - pos.getPosition(), pos.getElementWeight(), tmd->getWeight()); + LOG(debug, "Append elemId(%u),position(%u), weight(%d), tfmd.weight(%d)", + pos.getElementId(), pos.getPosition(), pos.getElementWeight(), tmd->getWeight()); } } } -- cgit v1.2.3