Autofill in Solr and sunspot

I create a site with RoR and I use Sunspot and the solr search engine. I needed to use the autocomplete functions, but I could not. I knew that Solr has a new thing called togetester , but I don’t know how to use it with sunspot and in the rails app.

I found a gem called sunspot_autocomplete , and I followed what was written, but when I try to reindex, I get this error:

rake aborted!
RSolr::Error::Http - 400 Bad Request
Error: ERROR:unknown field 'tags_ac'

The model that can be found under the name Experience, and I put this block in it

searchable do
  text :tags, :boost => 3
  text :title, :boost => 2
  text :tips
  autocomplete :tags, :using => :tags
end 

Finally, I found this blog that it sounds good, but I do not understand it :(

http://www.binrand.com/post/3338898-autocomplete-solr-architecture-rails-3-2-solr-1-4-with-sunspot-solr-gem.html

. :)

: , .

0
2

"" =)

, schema.xml "autocomplete" , solr http://localhost:8982/solr/admin/file/?file=schema.xml ( , )

, , ( )

, http://localhost:8982/solr/admin/, SolrHome

, !

0
0

All Articles