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
Post a Comment