Class: FiltersSearchConnector

FiltersSearchConnector()

A model that creates listeners between a Filters collection and a SearchResults. It does not assume anything about how the search results or filters will be displayed in the UI or why those components need to be connected. It simply sends a new search when the filters have been changed.

Constructor

new FiltersSearchConnector()

Source:

Extends

  • Backbone.Model

Methods

defaults()

Properties:
Name Type Description
filtersList Array.<Filter> An array of Filter models to optionally add to the Filters collection
filters Filters A Filters collection to use for this search
searchResults SolrResults The SolrResults collection that the search results will be stored in
Source:

startListening()

Sets listeners on the Filters and SearchResults to trigger a search when the search changes
Since:
  • 2.22.0
Source:

triggerSearch()

Get Results from the Solr index by combining the Filter query string fragments in each Filter instance in the Search collection and querying Solr.
Since:
  • 2.22.0
Source:
Fires:
  • SolrResults#event:toPage