Module ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Str Num ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Dict Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpMult BinOpSub NameLoad Num AttributeLoad NameLoad attr Expr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad vararg kwarg body FunctionDef arguments args NameParam defaults body Return Call Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIs Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad BoolOpOr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list
N/A __future__ absolute_import division print_function unicode_literals django.conf settings django.core.paginator InvalidPage Paginator django.http Http404 django.shortcuts render haystack.forms FacetedSearchForm ModelSearchForm haystack.query EmptySearchQuerySet N/A RESULTS_PER_PAGE N/A getattr settings HAYSTACK_SEARCH_RESULTS_PER_PAGE 20 SearchView N/A object N/A N/A template search/search.html N/A extra_context N/A N/A query N/A results N/A EmptySearchQuerySet N/A request None N/A form None N/A results_per_page RESULTS_PER_PAGE __init__ N/A N/A self template load_all form_class searchqueryset results_per_page N/A None True None None None N/A N/A N/A self load_all load_all N/A N/A self form_class form_class N/A N/A self searchqueryset searchqueryset N/A N/A form_class None N/A N/A N/A self form_class ModelSearchForm N/A N/A N/A results_per_page None N/A N/A N/A self results_per_page results_per_page N/A template N/A N/A N/A self template template N/A __call__ N/A N/A self request N/A N/A N/A 
        Generates the actual response to the search.

        Relies on internal, overridable methods to construct the response.
         N/A N/A self request request N/A N/A self form N/A N/A self build_form N/A N/A self query N/A N/A self get_query N/A N/A self results N/A N/A self get_results N/A N/A N/A self create_response N/A build_form N/A N/A self form_kwargs N/A None N/A N/A 
        Instantiates the form the class should use to process the search query.
         N/A data None N/A kwargs N/A load_all N/A self load_all N/A form_kwargs N/A N/A N/A N/A kwargs update form_kwargs N/A N/A len N/A N/A self request GET N/A N/A data N/A N/A self request GET N/A N/A N/A self searchqueryset None N/A N/A N/A kwargs N/A searchqueryset N/A self searchqueryset N/A N/A N/A self form_class data kwargs N/A get_query N/A N/A self N/A N/A N/A 
        Returns the query provided by the user.

        Returns an empty string if the query is invalid.
         N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A N/A self form cleaned_data N/A q N/A N/A get_results N/A N/A self N/A N/A N/A 
        Fetches the results via the form.

        Returns an empty list if there's no query to search with.
         N/A N/A N/A N/A self form search N/A build_page N/A N/A self N/A N/A N/A 
        Paginates the results appropriately.

        In case someone does not want to use Django's built-in pagination, it
        should be a simple matter to override this method to do what they would
        like.
         N/A N/A N/A page_no N/A int N/A N/A N/A N/A self request GET get page 1 N/A N/A N/A N/A TypeError ValueError N/A N/A N/A Http404 Not a valid number for page. N/A N/A page_no 1 N/A N/A N/A Http404 Pages should be 1 or greater. N/A start_offset N/A N/A page_no 1 N/A self results_per_page N/A N/A N/A self results N/A start_offset N/A start_offset N/A self results_per_page N/A paginator N/A Paginator N/A self results N/A self results_per_page N/A N/A N/A page N/A N/A paginator page page_no N/A N/A N/A InvalidPage N/A N/A N/A Http404 No such page! N/A N/A paginator page N/A extra_context N/A N/A self N/A N/A N/A 
        Allows the addition of more context variables as needed.

        Must return a dictionary.
         N/A N/A N/A get_context N/A N/A self N/A N/A N/A N/A paginator page N/A N/A self build_page N/A context N/A query form page paginator suggestion N/A self query N/A self form page paginator None N/A N/A N/A self results N/A hasattr N/A self results query N/A N/A N/A N/A self results query backend include_spelling N/A N/A N/A context N/A suggestion N/A N/A N/A self form get_suggestion N/A N/A N/A context update N/A N/A self extra_context N/A context N/A create_response N/A N/A self N/A N/A N/A 
        Generates the actual HttpResponse to send back to the user.
         N/A context N/A N/A self get_context N/A N/A render N/A self request N/A self template context N/A N/A search_view_factory N/A N/A view_class N/A SearchView args kwargs N/A search_view N/A N/A request N/A N/A N/A N/A N/A view_class args kwargs request N/A N/A search_view N/A FacetedSearchView N/A SearchView N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A kwargs get form_class None N/A N/A N/A kwargs N/A form_class FacetedSearchForm N/A N/A N/A N/A super FacetedSearchView self __init__ args kwargs N/A build_form N/A N/A self form_kwargs N/A None N/A N/A N/A form_kwargs None N/A N/A form_kwargs N/A N/A N/A form_kwargs N/A selected_facets N/A N/A N/A N/A self request GET getlist selected_facets N/A N/A N/A N/A super FacetedSearchView self build_form form_kwargs N/A extra_context N/A N/A self N/A N/A N/A extra N/A N/A N/A super FacetedSearchView self extra_context N/A N/A extra N/A request N/A self request N/A N/A extra N/A facets N/A N/A N/A self results facet_counts N/A extra N/A N/A basic_search N/A N/A request template load_all form_class searchqueryset extra_context results_per_page N/A search/search.html True ModelSearchForm None None None N/A N/A 
    A more traditional view that also demonstrate an alternative
    way to use Haystack.

    Useful as an example of for basing heavily custom views off of.

    Also has the benefit of thread-safety, which the ``SearchView`` class may
    not be.

    Template:: ``search/search.html``
    Context::
        * form
          An instance of the ``form_class``. (default: ``ModelSearchForm``)
        * page
          The current page of search results.
        * paginator
          A paginator instance for the results.
        * query
          The query received by the form.
     N/A query N/A results N/A EmptySearchQuerySet N/A N/A N/A N/A request GET get q N/A N/A form N/A form_class N/A request GET searchqueryset searchqueryset load_all load_all N/A N/A N/A form is_valid N/A N/A query N/A N/A form cleaned_data N/A q N/A results N/A N/A form search N/A N/A form N/A form_class searchqueryset searchqueryset load_all load_all N/A paginator N/A Paginator results N/A results_per_page RESULTS_PER_PAGE N/A N/A N/A page N/A N/A paginator page N/A int N/A N/A N/A request GET get page 1 N/A N/A N/A InvalidPage N/A N/A N/A Http404 No such page of results! N/A context N/A form page paginator query suggestion form page paginator query None N/A N/A N/A N/A results query backend include_spelling N/A N/A N/A context N/A suggestion N/A N/A form get_suggestion N/A extra_context N/A N/A N/A N/A context update extra_context N/A N/A render request template context N/A