aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/multi_string_enum_search_context.h
blob: c9b8e8271b1a7dc703927aed86b79d3bfceac75f (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
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "multi_enum_search_context.h"
#include "string_search_context.h"
#include <vespa/vespalib/fuzzy/fuzzy_matching_algorithm.h>

namespace search::attribute {

/*
 * MultiStringEnumSearchContext handles the creation of search iterators for
 * a query term on a multi value string enumerated attribute vector.
 */
template <typename M>
class MultiStringEnumSearchContext : public MultiEnumSearchContext<const char*, StringSearchContext, M>
{
public:
    MultiStringEnumSearchContext(std::unique_ptr<QueryTermSimple> qTerm, bool cased,
                                 vespalib::FuzzyMatchingAlgorithm fuzzy_matching_algorithm,
                                 const AttributeVector& toBeSearched,
                                 MultiValueMappingReadView<M> mv_mapping_read_view,
                                 const EnumStoreT<const char*>& enum_store);
};

}