blob: f8c95391704b8b37f6ebc7fafc50051fd83b8956 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "document_weight_attribute_helper.h"
#include <vespa/searchcommon/attribute/config.h>
namespace search::test {
AttributeVector::SP
DocumentWeightAttributeHelper::make_attr() {
attribute::Config cfg(attribute::BasicType::INT64, attribute::CollectionType::WSET);
cfg.setFastSearch(true);
return AttributeFactory::createAttribute("my_attribute", cfg);
}
DocumentWeightAttributeHelper::~DocumentWeightAttributeHelper() = default;
}
|