我需要在我的模型中进行文本搜索并同时使用db查询进行过滤。 例如: class MyModel(models.Model):
text = models.TextField()
users = models.ManyToMany(User)
class MyModelIndexIndex(indexes.SearchIndex, indexes.Indexable):
我正在学习Django。 我必须为测试应用程序构建搜索引擎。 我 search_indexes.py from haystack import indexes
from .models import Post
class PostIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(docum