diff options
author | Henning Baldersheim <balder@oath.com> | 2018-06-06 17:31:13 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-06-06 17:31:13 +0200 |
commit | a0a4c9b7c743c46d9068619e1344f16c46c61610 (patch) | |
tree | 6e846a4c620eb1a448b9061c757f7cba89c338ba /streamingvisitors | |
parent | 5e0b60a643e5b42091dcf137b8c1d5ba3352a382 (diff) |
Use the elementId
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()); } } } |