diff options
Diffstat (limited to 'streamingvisitors')
-rw-r--r-- | streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } } } |