aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary/src/vespa/searchsummary/docsummary/i_query_term_filter_factory.h
blob: 00ed40a6bd91a1c2ead7aca439d00dbbf48707d0 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/stllike/string.h>
#include <memory>

namespace search::docsummary {

class IQueryTermFilter;

/*
 * Interface class for creating an instance of IQueryTermFilter for a
 * specific input field.
 */
class IQueryTermFilterFactory
{
public:
    virtual ~IQueryTermFilterFactory() = default;

    virtual std::shared_ptr<const IQueryTermFilter> make(vespalib::stringref input_field) const = 0;
};

}