Source

gnocchi-catalogue / catalogue / search_indexes.py

Full commit

from haystack.indexes import SearchIndex, CharField
from haystack import site
from gnocchi_catalogue.models import Product

class ProductIndex(SearchIndex):
    text = CharField(document=True, use_template=True)
    title = CharField(model_attr='title')

site.register(Product, ProductIndex)