django-machina Logo
stable
  • Getting started
  • Example project
  • Settings
  • Glossary
  • Forum permissions
  • Customization
  • Machina’s apps reference
    • Forum
    • Forum conversation
    • Forum feeds
    • Forum member
    • Forum moderation
    • Forum permission
    • Forum search
      • Search indexes
        • Forum search indexes
      • Views
    • Forum tracking
  • Contributing to django-machina
  • Release notes
django-machina
  • Docs »
  • Machina’s apps reference »
  • Forum search
  • Edit on GitHub

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.Indexable

Defines the data stored in the Post indexes.

get_model()¶

Should return the Model class (not an instance) that the rest of the SearchIndex should 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.

Views¶

Next Previous

© Copyright 2013-2018, Morgan Aubert Revision f9bfb524.

Built with Sphinx using a theme provided by Read the Docs.