blob: 288d63aedf1902f38e8056f171c8412c7c09852e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "single_string_enum_search_context.h"
#include "single_enum_search_context.hpp"
#include <vespa/searchlib/query/query_term_simple.h>
namespace search::attribute {
SingleStringEnumSearchContext::SingleStringEnumSearchContext(std::unique_ptr<QueryTermSimple> qTerm, bool cased,
vespalib::FuzzyMatchingAlgorithm fuzzy_matching_algorithm,
const AttributeVector& toBeSearched,
EnumIndices enum_indices,
const EnumStoreT<const char*>& enum_store)
: SingleEnumSearchContext<const char*, StringSearchContext>(StringMatcher(std::move(qTerm), cased, fuzzy_matching_algorithm),
toBeSearched, enum_indices, enum_store)
{
}
SingleStringEnumSearchContext::SingleStringEnumSearchContext(SingleStringEnumSearchContext&&) noexcept = default;
SingleStringEnumSearchContext::~SingleStringEnumSearchContext() = default;
}
|