feat: Allow variable index names for pelias docker#507
feat: Allow variable index names for pelias docker#507arnesetzer wants to merge 4 commits intopelias:masterfrom
Conversation
missinglink
left a comment
There was a problem hiding this comment.
With that one minor change it works great:
docker compose run --rm -it schema node scripts/check_stats.js{
"took": 157,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 10000,
"relation": "gte"
},
"max_score": null,
"hits": []
},
"aggregations": {
"sources": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "openaddresses",
"doc_count": 1389013,
"layers": {
"doc_count_error_upper_bound": 0,
...
`|
Can you please also change the other line in that file: |
|
So.. regarding As to which of the two we use here.. if we set it to If we set it to Would it make sense to let the script accept an |
👋 I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback.
Here's the reason for this change 🚀
Closes pelias/docker#371 which allows the docker command
pelias elastic statsto use a different index name than the hardcoded ("pelias").Here's what actually got changed 👏
Moves the logic of the command
pelias elastic statsfrom the docker repo to this repo to be able to use the command with other index names.Here's how others can test the changes 👀
pelias.jsonlikenode script/check_statsor
docker build -t differentName/pelias-schema -f Dockerfile .pelias.jsonlikepelias elastic stats