I have model:
class Article(models.Model):
title = models.CharField(max_length=250)
slug = models.SlugField(max_length=250)
text = models.TextField()
date = models.DateTimeField(auto_now_add=True)
And file search_indexes.py:
from haystack import indexes
from haystack import site
from models import Article
class ArticleIndex(indexes.SearchIndex):
text_q = indexes.CharField(document=True, use_template=True)
text = indexes.CharField(model_attr='text')
# what I must add here ???
site.register(Article, ArticleIndex)
When I execute query it can find only than words which I have in TITLE field. When I use word combination from TEXT field I got "No results found"
What I must add for executing queries with words from TEXT field?