VeggieMeat / search_api_elasticsearch

Clone of project at drupal.org/project/search_api_elasticsearch for better CI options than what D.O offers
16 stars 8 forks source link

Empty settings lead to "no settings to update" 400 error #87

Open VeggieMeat opened 8 years ago

VeggieMeat commented 8 years ago

Original issue: https://www.drupal.org/node/2646006

Problem/Motivation

When sending an empty array to Elasticsearch it becomes very unhappy. Try:

curl -XPUT 'http://localhost:9200/some_existing_index/_settings'

you will get a 400 error.

Proposed resolution

Don't send a nothing.

Remaining tasks

User interface changes

API changes

Data model changes