diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-02-06 14:38:33 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-02-06 14:38:33 +0100 |
commit | 624bb3303a021ab3f3065c8d2be3d399054a82cf (patch) | |
tree | 90ee218ab735fa38ac1a5cc6c9bbe8afef0d68bb /searchlib/src/vespa/searchlib/query/streaming/query.cpp | |
parent | 9ae25d8c35f7a15fdb8f45eee4ca34afe8cd483a (diff) |
Handle search::streaming::PhraseQueryNode as a leaf in the query tree.
Diffstat (limited to 'searchlib/src/vespa/searchlib/query/streaming/query.cpp')
-rw-r--r-- | searchlib/src/vespa/searchlib/query/streaming/query.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/searchlib/src/vespa/searchlib/query/streaming/query.cpp b/searchlib/src/vespa/searchlib/query/streaming/query.cpp index f1b3a804c50..77424fb2d62 100644 --- a/searchlib/src/vespa/searchlib/query/streaming/query.cpp +++ b/searchlib/src/vespa/searchlib/query/streaming/query.cpp @@ -63,22 +63,6 @@ QueryConnector::getLeaves(ConstQueryTermList & tl) const } } -void -QueryConnector::getPhrases(QueryNodeRefList & tl) -{ - for (const auto & node : _children) { - node->getPhrases(tl); - } -} - -void -QueryConnector::getPhrases(ConstQueryNodeRefList & tl) const -{ - for (const auto & node : _children) { - node->getPhrases(tl); - } -} - size_t QueryConnector::depth() const { @@ -218,20 +202,6 @@ Query::getLeaves(ConstQueryTermList & tl) const { } void -Query::getPhrases(QueryNodeRefList & tl) { - if (valid()) { - _root->getPhrases(tl); - } -} - -void -Query::getPhrases(ConstQueryNodeRefList & tl) const { - if (valid()) { - _root->getPhrases(tl); - } -} - -void Query::reset() { if (valid()) { _root->reset(); |