Search¶
Oscar provides a search view that extends Haystack’s FacetedSearchView to
provide better support for faceting.
Facets are configured using the
OSCAR_SEARCH_FACETSsetting, which is used to configure theSearchQuerySetinstance within the search application class.A simple search form is injected into each template context using a context processor
oscar.apps.search.context_processors.search_form.
Views¶
Forms¶
- class oscar.apps.search.forms.BrowseCategoryForm(*args, **kwargs)[source]¶
Variant of SearchForm that returns all products (instead of none) if no query is specified.
- property media¶
Return all media required to render the widgets on this form.
- class oscar.apps.search.forms.CategoryForm(categories, *args, **kwargs)[source]¶
- property media¶
Return all media required to render the widgets on this form.