From 2c2284d6e08ecaf09615f016fda33a321312a555 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 14 Jul 2016 17:04:20 -0400 Subject: [PATCH] feat: Add default index names for API and schema This is a backwards compatible config that adds configuration defaults for Elasticsearch index names for both the API and schema (which is also intended to be used by the importers). Connects https://github.com/pelias/api/issues/334 --- config/defaults.json | 4 ++++ config/expected-deep.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/config/defaults.json b/config/defaults.json index 53ae5bb..96510f1 100644 --- a/config/defaults.json +++ b/config/defaults.json @@ -20,8 +20,12 @@ "api": { "accessLog": "common", "host": "http://pelias.mapzen.com/", + "indexName": "pelias", "version": "1.0" }, + "schema": { + "indexName": "pelias" + }, "logger": { "level": "debug", "timestamp": true, diff --git a/config/expected-deep.json b/config/expected-deep.json index 566b9bc..d264ccf 100644 --- a/config/expected-deep.json +++ b/config/expected-deep.json @@ -24,9 +24,13 @@ }, "api": { "accessLog": "common", + "indexName": "pelias", "host": "http://pelias.mapzen.com/", "version": "1.0" }, + "schema": { + "indexName": "pelias" + }, "logger": { "level": "debug", "timestamp": true,