annotations.views.search_views module

Provides search views.

class annotations.views.search_views.TextSearchView(**kwargs)[source]

Bases: haystack.generic_views.FacetedSearchView

Class based view for thread-safe search.

facet_fields = ['collections']
form_invalid(form)[source]

Just return all of the texts.

form_valid(form)[source]
get_context_data(*args, **kwargs)[source]

Return context data.

queryset = <SearchQuerySet: query=<haystack.backends.elasticsearch2_backend.Elasticsearch2SearchQuery object>, using=None>
results_per_page = 20
template_name = 'annotations/list_texts.html'
annotations.views.search_views.concept_autocomplete(request)[source]

Provides the Concept autocomplete in the home view.