elasticsearch update from 0.90 to 1.7 ruby on rails code does not work anymore -


hello people need ruby on rails.

yesterday updated elasticsearch 0.90 1.7 , received error

caused by: org.elasticsearch.index.query.queryparsingexception: [published-entities-production] no query registered [text_phrase_prefix] 

my autocomplete code not working anymore

 def self.autocomplete str     tire.search(entity.index.name, :query => {:text_phrase_prefix => {:name => str}}).results.collect |result|       unicodeutils.downcase(result.name, :lt).gsub(/[^\p{word}]+/u, ' ').gsub(/  +/, '').strip     end.uniq   end 

please me solve problem. /usr/share/elasticsearch/data exists


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -