summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-06-19 13:04:42 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-06-19 13:06:30 +0000
commita8e57585e422b4758af5c178e252409eb3f43b30 (patch)
tree36e2f3539847d4b086b25c75ccf9c051312bca32 /searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp
parentd995dda4234ed90e4c9c46688c54c6be409e46bb (diff)
Add template parameter to FieldIndex that specifies whether the underlying posting lists have interleaved features or not.
Currently, we only support posting lists without interleaved features.
Diffstat (limited to 'searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp')
-rw-r--r--searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp b/searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp
index df7f80e8601..36e9bde5c9f 100644
--- a/searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp
+++ b/searchlib/src/tests/memoryindex/field_index/field_index_iterator_test.cpp
@@ -18,10 +18,13 @@ using namespace search::memoryindex;
using search::index::schema::DataType;
using search::test::SearchIteratorVerifier;
+using FieldIndexType = FieldIndex<false>;
+using PostingIteratorType = PostingIterator<false>;
+
class Verifier : public SearchIteratorVerifier {
private:
mutable TermFieldMatchData _tfmd;
- FieldIndex _field_index;
+ FieldIndexType _field_index;
public:
Verifier(const Schema& schema)
@@ -41,8 +44,8 @@ public:
(void) strict;
TermFieldMatchDataArray match_data;
match_data.add(&_tfmd);
- return std::make_unique<PostingIterator>(_field_index.find("a"),
- _field_index.getFeatureStore(), 0, match_data);
+ return std::make_unique<PostingIteratorType>(_field_index.find("a"),
+ _field_index.getFeatureStore(), 0, match_data);
}
};