You're viewing an archived version of our docs. Check out our current documentation →
UI libraries / Algolia for Flutter / Widgets

Search State

About this widget

The SearchState class lets you provide raw search parameters to the Algolia API.

For more information about the different parameters you can set, check out the search parameters API reference.

You can’t set the filters parameter. Instead use Filter State.

Examples

1
2
3
4
5
var state = SearchState(
  indexName: "YourIndexName",
  hitsPerPage: 20,
  analytics: true,
);