aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/matching/sameelementmodifier.h
blob: 796b56000069cd570c44159e4bb034843f5b5df9 (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.

#pragma once

#include "querynodes.h"
#include <vespa/searchlib/query/tree/templatetermvisitor.h>

namespace proton::matching {

/**
 * Prefix the indexname of the terms under the SameElement node.
 *
 */
class SameElementModifier : public search::query::TemplateTermVisitor<SameElementModifier, ProtonNodeTypes>
{
public:
    template <class TermNode>
    void visitTerm(TermNode &) {  }
    void visit(ProtonNodeTypes::SameElement &n) override;
};

}