Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention running "pelias elastic alias" in the README setup instructions #45

Open
toolness opened this issue Sep 3, 2020 · 1 comment

Comments

@toolness
Copy link
Contributor

toolness commented Sep 3, 2020

Step 5 of the README appeared to work successfully, but then when I inspected the output of curl -s localhost:4000/v1/autocomplete?text=1415%20ave%20w more closely, I noticed there were some errors:

{
  "geocoding": {
    "version": "0.2",
    "attribution": "http://localhost:4000/attribution",
    "query": {
      /* Leaving this out for brevity... */
    },
    "errors": [
      "[index_not_found_exception] no such index, with { resource.type=\"index_or_alias\" & resource.id=\"pelias\" & index_uuid=\"_na_\" & index=\"pelias\" }"
    ],
    "engine": {
      "name": "Pelias",
      "author": "Mapzen",
      "version": "1.0"
    },
    "timestamp": 1599158975509
  },
  "type": "FeatureCollection",
  "features": []
}

I kept looking through the README and noticed at the very bottom, in the section on "Updating PAD Data", there was a mention of running pelias elastic alias to "update the API ES alias to point to the new index". The words "alias" and "index" were also in the above error JSON so I thought maybe running that might fix it, and it did!

So it sounds like maybe step 5 of the README should also mention running pelias elastic alias too?

@SPTKL
Copy link
Contributor

SPTKL commented Dec 3, 2020

I'm not familiar with elastic search index but when I set

"indexName": "nycpad_VERSION"

to be the same as
"indexName": "pelias"

curl -s localhost:4000/v1/autocomplete?text=1415%20ave%20w seems to be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants