Seems like the official Ruby gem is not ready for Elastic 5.1 in particualr when using elasticsearch-model, elasticsearch-rails or elastic-search persistence with the activerecord pattern.
the String type has been deprecated by %.0 adn removed in 5.1 but this gems has not support for Text or Keyword.
Does anyone knows a workaround?