-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
create_index.js Bad Request #240
Comments
Hey @longingchai, Some things that would help are:
|
I also get the same issue, I am using elastic search 5.6.0, which fails. If I use 2.4.0, it works fine. I believe it is because the create_index is using an older version of elasticsearch npm module, which calls HTTP POST instead of HTTP PUT for creating the index. This pull request removed HTTP POST support for creating indices elastic/elasticsearch#20001 |
I got past the API error by specifying the API version in the pelias_config, however there is another issue now. { apiVersion: '5.x', create index[mapper_parsing_exception] Mapping definition for [center_point] has unsupported parameters: [geohash : true] [geohash_precision : 18] [lat_lon : true] [geohash_prefix : true] { error: |
I made a work around, not sure if it broke everthing else though. I managed to get the index created by commenting out lat_lon, and all 3 geohash elements from centroid.js. I believe they are provided automatically now. { apiVersion: '5.x', create index[put mapping] pelias { acknowledged: true,
|
Hey @jeremy-prater, We do have a PR open to achieve Elasticsearch 5 compatibility. Can you take a look at that branch and see how the changes in there compare to the ones you made? Also if you could report on if those ES5 compatible changes work with ES2, that would be a huge help. Ideally we would be able to at least unofficially support ES5, while still working on ES2 soon. |
For the POST error you can add the method you want to use to create the index. The line 19 of the file scripts/create_index.js look like this |
Hey @eldie1984, |
"npm test" in schema all passed , but got "Bad Request" when I run "node scripts/create_index.js", can anyone help me to fix this problem ?
The text was updated successfully, but these errors were encountered: