Skip to content

Commit

Permalink
feat: Add default index names for API and schema
Browse files Browse the repository at this point in the history
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 pelias/api#334
  • Loading branch information
orangejulius committed Jul 14, 2016
1 parent cb25f16 commit 2c2284d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions config/expected-deep.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2c2284d

Please sign in to comment.