Skip to content

Commit

Permalink
feat(config): default api.targets.auto_discover to true
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Change the default value of
`api.targets.auto_discover`, which [automatically detects sources and
layers from Elasticsearch](https://github.com/pelias/api#custom-sources-and-layers), to true.

This setting is the generally recommended value and is required for
Pelias users importing their own custom data.
  • Loading branch information
missinglink authored and orangejulius committed Apr 9, 2021
1 parent 5d7c205 commit 81c5f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"indexName": "pelias",
"version": "1.0",
"targets": {
"auto_discover": false,
"auto_discover": true,
"canonical_sources": ["whosonfirst", "openstreetmap", "openaddresses", "geonames"],
"layers_by_source": {
"openstreetmap": [ "address", "venue", "street" ],
Expand Down
2 changes: 1 addition & 1 deletion test/expected-deep.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"host": "http://pelias.mapzen.com/",
"version": "1.0",
"targets": {
"auto_discover": false,
"auto_discover": true,
"canonical_sources": ["whosonfirst", "openstreetmap", "openaddresses", "geonames"],
"layers_by_source": {
"openstreetmap": [ "address", "venue", "street" ],
Expand Down

0 comments on commit 81c5f5a

Please sign in to comment.