summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-06-06 14:56:29 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-06-06 18:54:56 +0200
commit1d079165f38e46422e4b4f51189c97b3fbe9d125 (patch)
tree02dbd194f079452f6296370a128b93b254033d12 /searchcore
parentd1005b01fc79f56049ca6244c31dd3d15b64492c (diff)
Save average field length in posting list file header.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/feed_and_search/feed_and_search.cpp2
-rw-r--r--searchcore/src/tests/proton/index/fusionrunner_test.cpp1
-rw-r--r--searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.cpp2
3 files changed, 3 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/feed_and_search/feed_and_search.cpp b/searchcore/src/tests/proton/feed_and_search/feed_and_search.cpp
index 9a343667fd6..23a87415f7f 100644
--- a/searchcore/src/tests/proton/feed_and_search/feed_and_search.cpp
+++ b/searchcore/src/tests/proton/feed_and_search/feed_and_search.cpp
@@ -172,7 +172,7 @@ void Test::requireThatMemoryIndexCanBeDumpedAndSearched() {
const uint64_t num_words = memory_index.getNumWords();
search::TuneFileIndexing tuneFileIndexing;
DummyFileHeaderContext fileHeaderContext;
- index_builder.open(docIdLimit, num_words, tuneFileIndexing, fileHeaderContext);
+ index_builder.open(docIdLimit, num_words, MockFieldLengthInspector(), tuneFileIndexing, fileHeaderContext);
memory_index.dump(index_builder);
index_builder.close();
diff --git a/searchcore/src/tests/proton/index/fusionrunner_test.cpp b/searchcore/src/tests/proton/index/fusionrunner_test.cpp
index 25e7a4ffa6b..e6cdbf8d6cb 100644
--- a/searchcore/src/tests/proton/index/fusionrunner_test.cpp
+++ b/searchcore/src/tests/proton/index/fusionrunner_test.cpp
@@ -188,6 +188,7 @@ void Test::createIndex(const string &dir, uint32_t id, bool fusion) {
TuneFileIndexing tuneFileIndexing;
TuneFileAttributes tuneFileAttributes;
index_builder.open(docIdLimit, memory_index.getNumWords(),
+ MockFieldLengthInspector(),
tuneFileIndexing,
_fileHeaderContext);
memory_index.dump(index_builder);
diff --git a/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.cpp b/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.cpp
index d206388ca04..59e943e25f4 100644
--- a/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.cpp
+++ b/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.cpp
@@ -42,7 +42,7 @@ MemoryIndexWrapper::flushToDisk(const vespalib::string &flushDir,
indexBuilder.setPrefix(flushDir);
SerialNumFileHeaderContext fileHeaderContext(_fileHeaderContext,
serialNum);
- indexBuilder.open(docIdLimit, numWords, _tuneFileIndexing, fileHeaderContext);
+ indexBuilder.open(docIdLimit, numWords, *this, _tuneFileIndexing, fileHeaderContext);
_index.dump(indexBuilder);
indexBuilder.close();
}