summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-02-06 17:48:57 +0100
committerGitHub <noreply@github.com>2020-02-06 17:48:57 +0100
commitff260db549d4c7cf4df1d782d6b82ce76bbabd61 (patch)
treeadafdcca7bc3c4a285b785caa627ea78766abc00 /searchlib
parentac92ae91f56321ad31b671edb4525a4f30e58421 (diff)
parentb0736aff19d4d34df7a767c12c5fc1b01c98769f (diff)
Merge pull request #12101 from vespa-engine/balder/handle-singlevalue-byte-efficiently-too
Handle lookup in singlevalue byte attributes efficiently too.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/features/attributefeature.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/features/attributefeature.cpp b/searchlib/src/vespa/searchlib/features/attributefeature.cpp
index b1d3356dd62..519dcf874a2 100644
--- a/searchlib/src/vespa/searchlib/features/attributefeature.cpp
+++ b/searchlib/src/vespa/searchlib/features/attributefeature.cpp
@@ -356,6 +356,7 @@ createAttributeExecutor(const IAttributeVector *attribute, const vespalib::strin
if ((attribute->getCollectionType() == CollectionType::SINGLE) && (attribute->isIntegerType() || attribute->isFloatingPointType())) {
{ SingleValueExecutorCreator<FloatingPointAttributeTemplate<double>> creator; if (creator.handle(attribute)) return creator.create(stash); }
{ SingleValueExecutorCreator<FloatingPointAttributeTemplate<float>> creator; if (creator.handle(attribute)) return creator.create(stash); }
+ { SingleValueExecutorCreator<IntegerAttributeTemplate<int8_t>> creator; if (creator.handle(attribute)) return creator.create(stash); }
{ SingleValueExecutorCreator<IntegerAttributeTemplate<int32_t>> creator; if (creator.handle(attribute)) return creator.create(stash); }
{ SingleValueExecutorCreator<IntegerAttributeTemplate<int64_t>> creator; if (creator.handle(attribute)) return creator.create(stash); }
}