Hi Arun, Which version of Thinking Sphinx are you using? If it's version 3.*, you should be using the new way of defining indices: put them in separate files in app/indices, and start them with ThinkingSphinx::Index.define, not define_index.
Look at the documentation to learn more: http://pat.github.io/thinking-sphinx/quickstart.html If you're on ThinkingSphinx v2, then we need more information to be able to help you. What have you tried? -Timo On 7 November 2013 16:20, Arun Sakthivel <[email protected]> wrote: > Hi, > My code is, > > define_index do > set_property :delta => true > set_property :docinfo => 'extern' > set_property :min_word_len => 1 > set_property :wordforms => 'db/dicts/wordforms.txt' > set_property :stopwords => 'db/dicts/stopwords.txt' > > indexes :name > indexes :description > indexes places(:country), :as => :country > indexes guide_tags(:name_en), :as => 'tag_names_en', :separator => ' ' > indexes guide_tags(:name_nl), :as => 'tag_names_nl', :separator => ' ' > indexes guide_tags(:name_fr), :as => 'tag_names_fr', :separator => ' ' > indexes guide_tags(:name_pt), :as => 'tag_names_pt', :separator => ' ' > indexes places(:city_id), :as => 'indexed_city_id', :separator => ' ' > > has places(:city_id), :as => :city_ids > has :created_at > has :guide_places_count > has :likings_count > has :comments_count > end > > > Im getting error : ThinkingSphinx::SphinxError: no enabled local indexes to > search > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/groups/opt_out.
