blob: f3214794cea1626da4fdd937e98052f28cff8d3c (
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 Yahoo. 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;
};
}
|