Closed swimmadude66 closed 5 years ago
Thanks. Looking at it - looks like the API changed in 7.x
So this is confusing, as according to their docs, it should work: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#create-index-settings
yeah, I saw that too. I'm willing to bet there's a config somewhere which disables "strict" validation on API bodies, but I'm posting here because this error occurs straight out of the box with latest elastic and latest elastichq. here's the docker compose file I am using to launch it, nothing fancy.
version: '3'
services:
elastichq:
image: 'elastichq/elasticsearch-hq:release-v3.5.0'
container_name: 'elastic-hq'
ports:
- '5000:5000'
environment:
- HQ_DEFAULT_URL=http://search:9200
links:
- search
depends_on:
- search
search:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0
container_name: 'elastic-search'
ports:
- '9200:9200'
- '9300:9300'
expose:
- 9200
- 9300
environment:
- discovery.type=single-node
As such, it might be worth fixing, or at least finding that config option and adding it to the docs for elastichq as a recommended setup step
Tested with all versions and the fix should be working. I hope to do a release this week, if you don't want to pull from dev.
Thanks!
What is the solution to this problem? I am using Ubuntu 18.04
works this way:
{ "settings": { "number_of_shards": 100, "number_of_replicas": 2 }, "mappings": { ......
General information
Issue Description
Create index fails (though it shows "index created successfully") with error:
unknown key [number_of_shards] for create index elastichq
It appears that elasticHQ is passing
instead of
Source Code / Logs