diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-01-18 23:19:25 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-01-18 23:19:25 +0100 |
commit | 67061e4c884604de3bd7cbb14be165e89488650b (patch) | |
tree | 655d3b5af3a9bac7b8a6988b9b6b91627e839c6a /searchlib/src/vespa/searchlib/query/streaming/query.cpp | |
parent | 254862ddf5d55923232abef00e6c2fff32bf463b (diff) |
Rename search::streaming::Hit member function context() to field_id().
Diffstat (limited to 'searchlib/src/vespa/searchlib/query/streaming/query.cpp')
-rw-r--r-- | searchlib/src/vespa/searchlib/query/streaming/query.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/searchlib/src/vespa/searchlib/query/streaming/query.cpp b/searchlib/src/vespa/searchlib/query/streaming/query.cpp index ca742aabe26..618922eced9 100644 --- a/searchlib/src/vespa/searchlib/query/streaming/query.cpp +++ b/searchlib/src/vespa/searchlib/query/streaming/query.cpp @@ -208,7 +208,7 @@ SameElementQueryNode::evaluateHits(HitList & hl) const currMatchCount++; if ((currMatchCount+1) == numFields) { Hit h = nextHL[indexVector[currMatchCount]]; - hl.emplace_back(0, h.context(), h.elemId(), h.weight()); + hl.emplace_back(0, h.field_id(), h.elemId(), h.weight()); currMatchCount = 0; indexVector[0]++; } @@ -260,26 +260,26 @@ PhraseQueryNode::evaluateHits(HitList & hl) const const auto & currHit = curr->evaluateHits(tmpHL)[currIndex]; size_t firstPosition = currHit.pos(); uint32_t currElemId = currHit.elemId(); - uint32_t currContext = currHit.context(); + uint32_t curr_field_id = currHit.field_id(); const HitList & nextHL = next->evaluateHits(tmpHL); int diff(0); size_t nextIndexMax = nextHL.size(); while ((nextIndex < nextIndexMax) && - ((nextHL[nextIndex].context() < currContext) || - ((nextHL[nextIndex].context() == currContext) && (nextHL[nextIndex].elemId() <= currElemId))) && + ((nextHL[nextIndex].field_id() < curr_field_id) || + ((nextHL[nextIndex].field_id() == curr_field_id) && (nextHL[nextIndex].elemId() <= currElemId))) && ((diff = nextHL[nextIndex].pos()-firstPosition) < 1)) { nextIndex++; } - if ((diff == 1) && (nextHL[nextIndex].context() == currContext) && (nextHL[nextIndex].elemId() == currElemId)) { + if ((diff == 1) && (nextHL[nextIndex].field_id() == curr_field_id) && (nextHL[nextIndex].elemId() == currElemId)) { currPhraseLen++; if ((currPhraseLen+1) == fullPhraseLen) { Hit h = nextHL[indexVector[currPhraseLen]]; hl.push_back(h); - const QueryTerm::FieldInfo & fi = next->getFieldInfo(h.context()); - updateFieldInfo(h.context(), hl.size() - 1, fi.getFieldLength()); + const QueryTerm::FieldInfo & fi = next->getFieldInfo(h.field_id()); + updateFieldInfo(h.field_id(), hl.size() - 1, fi.getFieldLength()); currPhraseLen = 0; indexVector[0]++; } |