diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-11-27 22:11:36 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-12-12 02:55:39 +0100 |
commit | 740d87cc9cac3760b6053a921fd6398f248ca5b6 (patch) | |
tree | 62d49bfadb08f11ef838d4a69035cdc5a1708765 /searchlib/src/apps | |
parent | 84c6488ccd7691d389b710716c8f233a74cc0d6f (diff) |
- Use distributionkey when serializing for sort instead of gid.
- Avoid having to include the world for just the data type.
Diffstat (limited to 'searchlib/src/apps')
-rw-r--r-- | searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp b/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp index b1cf96f81ef..fa54ac8ca66 100644 --- a/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp +++ b/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp @@ -1,8 +1,6 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("vespa-index-inspect"); #include <vespa/searchlib/index/dictionaryfile.h> #include <vespa/searchlib/index/postinglistfile.h> #include <vespa/searchlib/bitcompression/compression.h> @@ -18,6 +16,8 @@ LOG_SETUP("vespa-index-inspect"); #include <vespa/searchlib/fef/termfieldmatchdata.h> #include <vespa/searchlib/fef/termfieldmatchdataarray.h> #include <iostream> +#include <vespa/log/log.h> +LOG_SETUP("vespa-index-inspect"); using search::index::Schema; using search::index::SchemaUtil; @@ -38,6 +38,7 @@ using search::diskindex::WordNumMapping; using search::diskindex::FieldReader; using search::diskindex::PageDict4FileSeqRead; using search::TuneFileSeqRead; +using namespace search::index; namespace { @@ -410,7 +411,7 @@ ShowPostingListSubApp::readDocIdLimit(const Schema &schema) uint32_t numIndexFields = schema.getNumIndexFields(); for (uint32_t fieldId = 0; fieldId < numIndexFields; ++fieldId) { const Schema::IndexField &field = schema.getIndexField(fieldId); - if (field.getDataType() == Schema::STRING) { + if (field.getDataType() == schema::STRING) { FieldReader fr; if (!fr.open(_indexDir + "/" + field.getName() + "/", tuneFileRead)) |