Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed docs on Solr spelling suggestion until the new Suggester suppor…

…t can be added. Thanks to zw0rk & many others for the report!
  • Loading branch information...
commit c2e3eccc20f00a17f06338b533c31c04127b8c7e 1 parent b5057a8
@toastdriven toastdriven authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/installing_search_engines.rst
4 docs/installing_search_engines.rst
@@ -53,14 +53,14 @@ To enable the spelling suggestion functionality in Haystack, you'll need to
enable the ``SpellCheckComponent``.
The first thing to do is create a special field on your ``SearchIndex`` class
-that mirrors the ``text`` field, but has ``indexed=False`` on it. This disables
+that mirrors the ``text`` field, but uses ``FacetCharField``. This disables
the post-processing that Solr does, which can mess up your suggestions.
Something like the following is suggested::
class MySearchIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
# ... normal fields then...
- suggestions = indexes.CharField()
+ suggestions = indexes.FacetCharField()
def prepare(self, obj):
prepared_data = super(NoteIndex, self).prepare(object)

0 comments on commit c2e3ecc

Please sign in to comment.
Something went wrong with that request. Please try again.