API Reference
/
iOS InstantSearch Widgets
/
Query
Apr. 24, 2019
Query
About this widget
The Query
class lets you provide raw search parameters to the Algolia API.
For more information on the different parameters you can set, have a look at the search parameters API reference.
Examples
Copy
1
2
3
4
5
6
7
8
9
// SingleIndexSearcher and FacetSearcher
searcher.indexQueryState.query.hitsPerPage = 20
searcher.indexQueryState.query.analytics = false
// MultiIndexSearcher
// Depending on which index in the multiIndexSearcher you want to modify
searcher.indexqueryStates[index].query.hitsPerPage = 20
searcher.indexqueryStates[index].query.analytics = false