blob: c4faf3951f6b8a09e0fb21879f2195a70f724f0d (
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
34
35
36
37
38
39
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "blueprint.h"
#include <vespa/searchlib/fef/matchdatalayout.h>
namespace search::fef { class TermFieldMatchData; }
namespace search::queryeval {
class SimplePhraseBlueprint : public ComplexLeafBlueprint
{
private:
FieldSpec _field;
HitEstimate _estimate;
fef::MatchDataLayout _layout;
std::vector<Blueprint::UP> _terms;
public:
SimplePhraseBlueprint(const FieldSpec &field, bool expensive);
SimplePhraseBlueprint(const SimplePhraseBlueprint &) = delete;
SimplePhraseBlueprint &operator=(const SimplePhraseBlueprint &) = delete;
~SimplePhraseBlueprint() override;
// used by create visitor
FieldSpec getNextChildField(const FieldSpec &outer);
// used by create visitor
void addTerm(Blueprint::UP term);
SearchIteratorUP createLeafSearch(const fef::TermFieldMatchDataArray &tfmda, bool strict) const override;
SearchIteratorUP createFilterSearch(bool strict, FilterConstraint constraint) const override;
void visitMembers(vespalib::ObjectVisitor &visitor) const override;
void fetchPostings(const ExecuteInfo &execInfo) override;
};
}
|