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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -