I followed the "getting started" documentation and I'm able, with a "simple" backend to search my model
I want now to include the tags from taggit. It's a special case because "tags" is a manager, not a real field
I found Daniel Lindsay answer here :
https://groups.google.com/d/topic/django-haystack/aD82EdLZeZw/discussion======
class EntrySearchIndex(indexes.SearchIndex):
text = indexes.CharField(document=True, use_template=True)
# Your fields here, then...
tags = indexes.MultiValueField()
def prepare_tags(self, obj):
return [tag.name for tag in obj.tags.all()]
====
I applied this, and also added : {{ object.tags }} in my model_text.txt template , but the search is still not able to find models using a tag they have
The message was from june 2010, perhaps the API changed meanwhile ?
The proposed method : def prepare_tags looks special : in the official API, I see "prepare", but no mention about specializing the method through its name
What should I do in december 2011 to make this work please ?