Using attributesToRetrieve (and other api parameters) with instantsearch.js

How might one set the attributesToRetrieve option in instantsearch.js?

Further on this, how would you customize your search with any other paramter availabe in the Algolia Search API?

Like these:

  "getRankingInfo": 1,
  "facets": "*",
  "attributesToRetrieve": "*",
  "highlightPreTag": "<em>",
  "highlightPostTag": "</em>",
  "hitsPerPage": 10,
  "facetFilters": [],
  "maxValuesPerFacet": 100

Would utilizing instant search’s:


Be the way to go?

You can use the searchParameters option. Be careful, those may be overridden by the configuration of widgets.