API Reference / InstantSearch iOS Widgets / 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

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

Did you find this page helpful?