-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSolr::Error::Http - 400 Bad Request Error: ERROR:unknown field 'tags_ac' #1
Comments
I think the problem should be in the declaration that should be changed in this way: for example, the configuration for my Account class is:
|
yes it worked now Thanks a lot .. but i have another problem ..in the last step i put in the view file <%= autocomplete_text_field "experience", "tags", "http://127.0.0.1:8983/solr/", "experience_tags"%> it appears in the browser like this : <script>$('#experience_tags').autocomplete('http://127.0.0.1:8983/solr/', 'experience_tags', {});</script> i want the autocomplete text box and also i want to put it in a form which will pass the query to the controller .. <%= form_tag experiences_path, :method => :get do %> <%= text_field_tag :search, params[:search] %> // the autocomplete box should replace this
Thanks a lot man for your help :) |
Hi. I think you are missin the raw helper.
|
TL;DR: Solr seems to crash because of some corrupt contents in the solr/data folder. So delete it, stop solr, start it again, and reindex to create the solr/data folder again. What worked for me was deleting the solr/ folder, and then starting solr again so that it would generate that folder again. I then replaced the solr/conf folder with my backed up version. Git status says that nothing has changed, so I presume the change that actually did the trick was the newly generated solr/data folder (which is in my .gitignore). |
Hello everyone !!
i did what's written :
but when i try to reindex.. i have this error :
rake aborted!
RSolr::Error::Http - 400 Bad Request
Error: ERROR:unknown field 'tags_ac'
as the model that searchable called 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
what's the problem guys ? Thanks a lot :)
The text was updated successfully, but these errors were encountered: