blob: 3c1aba30bf758a9c813e340e9f9958e0278aca48 (
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
|
// 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/queryeval/searchiterator.h>
#include "wand_parts.h"
namespace search {
namespace queryeval {
struct WeakAndSearch : SearchIterator {
typedef wand::Terms Terms;
virtual size_t get_num_terms() const = 0;
virtual int32_t get_term_weight(size_t idx) const = 0;
virtual wand::score_t get_max_score(size_t idx) const = 0;
virtual const Terms &getTerms() const = 0;
virtual uint32_t getN() const = 0;
void visitMembers(vespalib::ObjectVisitor &visitor) const override;
static SearchIterator *createArrayWand(const Terms &terms, uint32_t n, bool strict);
static SearchIterator *createHeapWand(const Terms &terms, uint32_t n, bool strict);
static SearchIterator *create(const Terms &terms, uint32_t n, bool strict);
};
} // namespace queryeval
} // namespace search
|