This is the React InstantSearch v7 documentation.
If you’re upgrading from v6, see the upgrade guide.
If you were using React InstantSearch Hooks,
this v7 documentation applies—just check for necessary changes.
To continue using v6, you can find the archived documentation.
About this Hook
TheuseRelevantSort
Hook isn’t part of React InstantSearch,
but you can make a custom version with useConnector
and connectRelevantSort
.
This Hook allows switching between relevant and exhaustive sorting
when searching in virtual replica indices.