summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/features/querytermcountfeature.h
blob: 39b85756c0783a783aa4ad699f4dd8901acb984a (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
27
28
29
30
31
32
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/fef/blueprint.h>
#include <vespa/searchlib/fef/featureexecutor.h>
#include <vespa/searchlib/common/feature.h>

namespace search {
namespace features {

/**
 * Implements the blueprint for the query term count feature.
 */
class QueryTermCountBlueprint : public search::fef::Blueprint {
private:
public:
    QueryTermCountBlueprint();

    void visitDumpFeatures(const search::fef::IIndexEnvironment & env, search::fef::IDumpFeatureVisitor & visitor) const override;
    search::fef::Blueprint::UP createInstance() const override;
    search::fef::ParameterDescriptions getDescriptions() const override {
        return search::fef::ParameterDescriptions().desc();
    }
    bool setup(const search::fef::IIndexEnvironment & env, const search::fef::ParameterList & params) override;
    search::fef::FeatureExecutor &createExecutor(const search::fef::IQueryEnvironment & env, vespalib::Stash &stash) const override;
};


} // namespace features
} // namespace search