-
Notifications
You must be signed in to change notification settings - Fork 533
import data gives undefined method `tire' .. error #938
Comments
I remember the |
i already tried with |
when run |
You're using quite an old version of Tire. Please upgrade and try again. Also, there's new integration for ActiveModel+Rails at https://github.com/elasticsearch/elasticsearch-rails, I strongly recommend to use it instead of Tire. |
I have already tried different version of tire gem like 0.6.0,0.6.2 and 0.5.1 |
can you please suggest me the probable cause of error because I am middle of my development and this doesn't seems feasible idea to move tire gem to something else |
I'm afraid I can't -- you're running an old version of a retired library, you don't send any information what and how exactly you Try generating the example application (see README), try playing with the included integration tests for Mongo. |
i tried the example app. my article.rb include SyncAttr TODO: maybe we want to swap synonym and stop word filters.TODO: maybe we want to swap asciifolding and lowercase filters.TODO: maybe we want to disable _all field and set default query field.TODO: we could disable the storing of _source JSON. or compress it.settings TODO: default index nameindex_name { Thread.current[:index_name] || "test" } TODO: set index_options to doc for some fields for optimizationTODO: maybe use simple analyzer for 'id' fieldsartproperty :artikelnummer, type: 'string', index: 'not_analyzed' property :bezeichnung, type: 'multi_field', fields: { property :bezeichnung_zusatz, type: 'multi_field', fields: { property :matchcode, type: 'string', index: 'not_analyzed' property :mengeneinheit, type: 'string', include_in_all: false property :gewicht, type: 'float', include_in_all: false property :hersteller, type: 'multi_field', fields: { property :hersteller_nummer, type: 'string', index: 'not_analyzed', include_in_all: false property :hersteller_artikelnummer, type: 'string', index: 'not_analyzed' property :gruppe, type: 'multi_field', fields: { property :gruppe_zusatz, type: 'multi_field', fields: { property :gruppe_nummer, type: 'string', index: 'not_analyzed', include_in_all: false #property :hauptgruppe, type: 'multi_field', fields: { hauptgruppe: {type: 'string'},ngram: {:type => 'string', :index_analyzer => 'ngram_index_analyzer', :search_analyzer => 'ngram_search_analyzer'}#} TODO: n-level facetproperty :hierarchie, type: 'multi_field', fields: { property :langtext, type: 'multi_field', fields: { property :infotext, type: 'multi_field', fields: { property :bestelltext, type: 'multi_field', fields: { property :dimension, type: 'string', include_in_all: false property :listenpreis_netto, type: 'float', index: 'not_analyzed', include_in_all: false property :listenpreis_brutto, type: 'float', index: 'not_analyzed', include_in_all: false validates_presence_of :artikelnummer TODO: enable later#validates_presence_of :gruppe def self.set_current_index_name(name) |
when I run this command |
when i run
rake environment tire:import CLASS='Article.all' INDEX='mongo-articles' FORCE=true
gives error
** Invoke environment (first_time)
** Execute environment
** Invoke tire:import (first_time)
** Execute tire:import
[IMPORT] Deleting index 'mongo-articles'
rake aborted!
undefined method
tire' for #<Tire::Results::Collection:0xabec954> /home/helios/.rvm/gems/ruby-1.9.3-p484@munksearch/gems/tire-0.5.1/lib /tire/tasks.rb:55:in
block (2 levels) in <top (required)>'Tasks: TOP => tire:import
I have already tried different version of tire gem like 0.6.0,0.6.2 and 0.5.1
i am completely struck from here
The text was updated successfully, but these errors were encountered: