Guides
/
Building Search UI
Jan. 20, 2022
Upgrading InstantSearch Android
On this page
Upgrade from InstantSearch v1 to v2
InstantSearch v2 introduces a new architecture and new widgets, which brings several breaking changes from the v1.
- There is no more
InstantSearch
component automatically connecting widgets. You are now in control of theSearcher
and responsible for connecting and disconnecting it from widgets and other components. - The widgets are now built around
ViewModel
s, holding their data and business logic.
Compared to the V1 where widgets were AndroidViews
, now the core of the widget is its view-model, and the UI is behind an interface to ensure minimal coupling.
You can learn more about the philosophy of InstantSearch v2 in What is InstantSearch. Once ready to start migrating, learn the steps to building an InstantSearch v2 application in the getting started guide, and have a look at the new widgets.
The InstantSearch Android v1 documentation is available on the legacy docs page.
Did you find this page helpful?