The search index does not store any relationships, so it is "flat." You can only add category identifiers to the index for Entry (note that you must use the prepare_ method for prepare_ ):
class EntryIndex(indexes.SearchIndex, indexes.Indexable):
You can do something like:
category = Category.objects.get(name='something') sqs = SearchQuerySet().models(Entry).filter(categories=category.pk)
source share