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

#pragma once

#include "juniper_dfw_query_item.h"
#include <vespa/searchlib/fef/properties.h>

namespace juniper { class IQueryVisitor; }

namespace search::docsummary {

/*
 * Visitor used by juniper query adapter to visit properties describing
 * terms to highlight.
 */
class JuniperDFWTermVisitor : public search::fef::IPropertiesVisitor
{
public:
    juniper::IQueryVisitor *_visitor;
    JuniperDFWQueryItem _item;

    explicit JuniperDFWTermVisitor(juniper::IQueryVisitor *visitor)
        : _visitor(visitor),
          _item()
    {}
    void visitProperty(const search::fef::Property::Value &key, const search::fef::Property &values) override;
};

}