diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-05-03 08:20:58 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-05-03 08:20:58 +0000 |
commit | 2b0d59378d4fc46bb4843ecfe897b808506a58c2 (patch) | |
tree | 3ea7ef8edd6fb8af8ea15e3700eb7fe4fb071e87 /searchcommon/src | |
parent | a91e44a0ab32d4b14d42bbca95331f339f109267 (diff) |
Keep support for downgrade case.
Diffstat (limited to 'searchcommon/src')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/common/schema.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/searchcommon/src/vespa/searchcommon/common/schema.cpp b/searchcommon/src/vespa/searchcommon/common/schema.cpp index b56bec85f7f..6d3bae31508 100644 --- a/searchcommon/src/vespa/searchcommon/common/schema.cpp +++ b/searchcommon/src/vespa/searchcommon/common/schema.cpp @@ -157,6 +157,11 @@ Schema::IndexField::write(vespalib::asciistream & os, vespalib::stringref prefix Field::write(os, prefix); os << prefix << "averageelementlen " << static_cast<int32_t>(_avgElemLen) << "\n"; os << prefix << "experimentalpostinglistformat " << (_experimental_posting_list_format ? "true" : "false") << "\n"; + + // TODO: Remove prefix, phrases and positions when breaking downgrade is no longer an issue. + os << prefix << "prefix false" << "\n"; + os << prefix << "phrases false" << "\n"; + os << prefix << "positions true" << "\n"; } bool |