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

#pragma once

#include "multisearch.h"

namespace search::queryeval {

/**
 * A simple implementation of the Rank search operation.
 **/
class RankSearch : public MultiSearch
{
protected:
    void doSeek(uint32_t docid) override;

    /**
     * Create a new Rank Search with the given children. A non-strict Rank has
     * no strictness assumptions about its children.
     *
     * @param children the search objects we are rank'ing
     **/
    RankSearch(Children children) : MultiSearch(std::move(children)) { }

public:
    static SearchIterator::UP create(ChildrenIterators children, bool strict);
};

}