summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorkkraune <kristian@ymail.com>2021-01-25 16:52:35 +0100
committerkkraune <kristian@ymail.com>2021-01-25 16:52:35 +0100
commit4c99da74ad4c0d91b4bb21e18360d470f0ff9884 (patch)
treeaeedae489e32fea1f71ed1a8d802acc36e7a136b /config-model
parent134a556ff6a42b72ebb970c1c417a9f55cf96c8f (diff)
make migration guide work
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/python/ES_Vespa_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model/src/main/python/ES_Vespa_parser.py b/config-model/src/main/python/ES_Vespa_parser.py
index c695aae9fcb..b3398fd0403 100644
--- a/config-model/src/main/python/ES_Vespa_parser.py
+++ b/config-model/src/main/python/ES_Vespa_parser.py
@@ -55,11 +55,11 @@ class ElasticSearchParser:
for line in unparsed_mapping_file:
data = json.loads(line)
index = list(data.keys())[0]
- mappings = data[index]["mappings"][type]["properties"]
+ mappings = data[index]["mappings"]["properties"]
# Checking if some fields could be no-index
try:
- _all_enabled = data[index]["mappings"][type]["_all"]["enabled"]
+ _all_enabled = data[index]["mappings"]["_all"]["enabled"]
if not _all_enabled:
self._all = False
print(" > Not all fields in the document type '" + type + "' are searchable. Edit " + self.path + "schemas/" + type + ".sd to control which fields are searchable")