Looks like you modified your index without rebuilding your schema and copying it over into solr.
After doing that, you also need to restart solr/jetty
hope that helps!
Dave
On Jun 11, 2011 6:34pm, Odagi <
fcmi...@gmail.com> wrote:
> Hello all. I'm new with Haystack and I'm trying to enable spelling
>
> suggestions in my site but I can't figure out how does it work. I'll
>
> really appreciate any help. This is my search_indexes.py:
>
>
>
> class MyIndex(SearchIndex):
>
> text = CharField(document=True, use_template=True)
>
> nombre = CharField(model_attr='name')
>
> suggestions = CharField()
>
>
>
> def prepare(self, obj):
>
> prepared_data = super(MyIndex, self).prepare(obj)
>
> prepared_data['suggestions'] = prepared_data['text']
>
> return prepared_data
>
>
>
>
>
> And that is in my solrconfig file:
>
>
>
>
>
> textSpell
>
>
>
> default
>
> suggestions
>
> ./spellchecker1
>
> true
>
>
>
>
>
>
>
>
> startup="lazy">
>
>
>
> false
>
> false
>
> 1
>
>
>
>
>
> spellcheck
>
>
>
>
>
>
>
> But when I run ./manage.py rebuild_index get the following error:
>
>
>
> Failed to add documents to Solr: [Reason: None]
>
>
> equiv="Content-Type" />Error 400 ERROR:unknown field
>
> 'suggestions'HTTP ERROR 400
> Problem
>
> accessing /solr/update/. Reason: ERROR:unknown field
>
> 'suggestions'Powered by Jetty://
>
>
>
> Thanks in advance.
>
>
>
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "django-haystack" group.
>
> To post to this group, send email to
django-...@googlegroups.com.
>
> To unsubscribe from this group, send email to
django-haysta...@googlegroups.com.
>
> For more options, visit this group at
http://groups.google.com/group/django-haystack?hl=en.
>
>
>
>