summaryrefslogtreecommitdiff
path: root/dev-tools
diff options
context:
space:
mode:
authorAdrien Grand <jpountz@gmail.com>2016-03-02 10:41:45 +0100
committerAdrien Grand <jpountz@gmail.com>2016-03-03 15:00:23 +0100
commit2c3e4840f2e1c7691adbf71003dca3d898ff2d84 (patch)
treef30cd133663a6fc90de9c1c64c4f872378a33b61 /dev-tools
parent529f7cb42c988ba72a010483b430003e4d0828ed (diff)
Store _all payloads on 1 byte instead of 4. #16899
This changes the `_all` field to store per-field boosts using a single byte similarly to norms.
Diffstat (limited to 'dev-tools')
-rw-r--r--dev-tools/create_bwc_index.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-tools/create_bwc_index.py b/dev-tools/create_bwc_index.py
index da3aa6c8f4..c8ade7f866 100644
--- a/dev-tools/create_bwc_index.py
+++ b/dev-tools/create_bwc_index.py
@@ -247,6 +247,15 @@ def generate_index(client, version, index_name):
}
}
+ mappings['doc'] = {
+ 'properties': {
+ 'string': {
+ 'type': 'string',
+ 'boost': 4
+ }
+ }
+ }
+
settings = {
'number_of_shards': 1,
'number_of_replicas': 0,