So this is how I'm solving this right now.
Instead of:
content_auto = indexes.EdgeNgramField(model_attr='content')
Use:
content_auto = indexes.EdgeNgramField(use_template=True)
Then you can create a template for these. For example, I have an ItemIndex
in my catalog
app, where I want to search name
and description
. So, I made a file in templates/search/indexes/catalog/
called item_content_auto.txt
, which has the following in it:
{{ object.name }}
{{ object.description }}
This seems to be functioning how I want it to. A little more tedious than if 'content'
worked, but it should suffice.