aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahoo-inc.com>2017-08-24 12:24:57 +0000
committerTor Brede Vekterli <vekterli@yahoo-inc.com>2017-08-24 12:24:57 +0000
commit3207a57b97811577c421547d1461d2614f36ef01 (patch)
tree05b6b5c2cb8eb716644950be6616982925d5be8a /searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
parent556d96bf088eaf8ffcba608157a5d888a8efc3f4 (diff)
Map child LID to parent LID space in onSerializeFor...Sort functions
Diffstat (limited to 'searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
index b6ff442ae94..270f4d51788 100644
--- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
@@ -135,14 +135,16 @@ long ImportedAttributeVector::onSerializeForAscendingSort(DocId doc,
void *serTo,
long available,
const common::BlobConverter *bc) const {
- return _target_attribute->serializeForAscendingSort(doc, serTo, available, bc);
+ return _target_attribute->serializeForAscendingSort(
+ _reference_attribute->getReferencedLid(doc), serTo, available, bc);
}
long ImportedAttributeVector::onSerializeForDescendingSort(DocId doc,
void *serTo,
long available,
const common::BlobConverter *bc) const {
- return _target_attribute->serializeForDescendingSort(doc, serTo, available, bc);
+ return _target_attribute->serializeForDescendingSort(
+ _reference_attribute->getReferencedLid(doc), serTo, available, bc);
}
namespace {