Closed
Description
I am trying to run the template form the README like this: rails new searchapp --skip --skip-bundle --template https://raw.github.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/01-basic.rb
There are couple if issues.
- Contrary to the README, it didn't install elasticsearch. Instead, it told me to start elasticsearch using docker like this
docker run --name elasticsearch-rails-searchapp --publish 9200:9200 --env "discovery.type=single-node" --env "cluster.name=elasticsearch-rails" --env "cluster.routing.allocation.disk.threshold_enabled=false" --rm docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.0
- So I started docker, rand the image as instructed, then ran the command to generate the example template. That failed with this error:
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [articles] as the final mapping would have more than 1 type: [_doc, properties]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [articles] as the final mapping would have more than 1 type: [_doc, properties]"},"status":400}
I'm doing this in Bash on Macos 10.14,
Metadata
Metadata
Assignees
Labels
No labels