API Reference
/
Android Widgets
/
Query
Sep. 02, 2020
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
// SearcherSingleIndex and SearcherForFacets
searcher.query.hitsPerPage = 20
searcher.query.analytics = false
// SearcherMultipleIndex
searcher.queries[0].hitsPerPage = 20 // only for the first index
searcher.queries.forEach { it.query.analytics = false } // for all indices