aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/queryeval/termasstring.h
blob: 5428dfa0ce744e00bc0992de7fc60faa431db991 (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 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/query/tree/location.h>
#include <vespa/searchlib/query/tree/range.h>
#include <string>

namespace search {
namespace query { class Node; }

namespace queryeval {

inline const vespalib::string &termAsString(const vespalib::string &term) {
    return term;
}

vespalib::string termAsString(double float_term);

vespalib::string termAsString(int64_t int_term);

vespalib::string termAsString(const search::query::Range &term);

vespalib::string termAsString(const search::query::Location &term);

vespalib::string termAsString(const search::query::Node &term_node);

} // namespace search::queryeval
} // namespace search