Forum search¶
The forum_search application allows to search within forums.
Search indexes¶
Forum search indexes¶
This module defines search indexes allowing to perform searches among forum topics and posts.
-
class
machina.apps.forum_search.search_indexes.PostIndex¶ Bases:
haystack.indexes.SearchIndex,haystack.constants.IndexableDefines the data stored in the Post indexes.
-
get_model()¶ Should return the
Modelclass (not an instance) that the rest of theSearchIndexshould use.This method is required & you must override it to return the correct class.
-
index_queryset(using=None)¶ Get the default QuerySet to index when doing a full update.
Subclasses can override this method to avoid indexing certain objects.
-
read_queryset(using=None)¶ Get the default QuerySet for read actions.
Subclasses can override this method to work with other managers. Useful when working with default managers that filter some objects.
-