aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.cpp
blob: 16296fe5a990f349f74d686b1ce1d6ab3b31fcc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. 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;

}