search_api_elasticsearch
search_api_elasticsearch copied to clipboard
Empty settings lead to "no settings to update" 400 error
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.