diff options
Diffstat (limited to 'searchcommon/src/vespa/searchcommon/attribute/i_search_context.h')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/i_search_context.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h index 4be1f00dcbc..257f63c937c 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h +++ b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h @@ -5,18 +5,15 @@ #include <vespa/searchcommon/common/range.h> #include <vespa/vespalib/stllike/string.h> -namespace search { -namespace fef { - class TermFieldMatchData; -} -namespace queryeval { - class SearchIterator; +namespace search::fef { class TermFieldMatchData; } +namespace search::queryeval { class SearchIterator; } +namespace search { + class QueryTermBase; + class BitVector; } -class QueryTermBase; - -namespace attribute { +namespace search::attribute { class ISearchContext { public: @@ -49,8 +46,11 @@ public: /* * Create temporary posting lists. * Should be called before createIterator() is called. + * Will load/prepare any postings lists. Will take strictness and optional filter into account. + * @param strict If true iterator must advance to next valid docid. + * @param filter Any prefilter that can be applied to posting lists for optimization purposes. */ - virtual void fetchPostings(bool strict) = 0; + virtual void fetchPostings(bool strict, const BitVector * filter) = 0; virtual bool valid() const = 0; virtual Int64Range getAsIntegerTerm() const = 0; @@ -63,4 +63,3 @@ public: }; } -} |