blob: 4d5bb3d3bf9e15de6ad0ab4a2c1b0f700b37123c (
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
31
32
33
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "multisearch.h"
namespace search {
namespace 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(const Children & children) : MultiSearch(children) { }
public:
// Caller takes ownership of the returned SearchIterator.
static SearchIterator *create(const Children &children, bool strict);
};
} // namespace queryeval
} // namespace search
|