blob: 6134bf27d71a442be63ddef8bb00ed7965e8d907 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchlib/query/streaming/phrase_query_node.h>
#include <vespa/searchlib/query/streaming/query.h>
#include <vespa/searchlib/query/streaming/querynode.h>
namespace streaming {
/**
* This class wraps a query and adds extra information to the list of leaf terms.
**/
class QueryWrapper
{
public:
using TermList = search::streaming::QueryTermList;
private:
TermList _termList;
public:
QueryWrapper(search::streaming::Query & query);
~QueryWrapper();
TermList & getTermList() { return _termList; }
const TermList & getTermList() const { return _termList; }
};
} // namespace streaming
|