Create an Autocomplete Search Experience with InstantSearch iOS
On this page
When using the instant results pattern, you fetch actual results with each keystroke and display them on the results page. This approach is most effective either when the dataset is limited or when users have a well-defined idea of what they’re looking for.
For this instant results strategy to provide a good user experience, very fast response time is required to allow the results to be refreshed “instantly” on each keystroke.
For more information, see the blog post on instant results.
With InstantSearch iOS, you get instant results by default: you can specify
searchTriggeringMode = .searchOnSubmit on the
SearchBox to turn it off.
1 2 3 4 5 // For an Instant Results experience: queryInputInteractor.connectSearcher(searcher) // default value of searchTriggeringMode parameter is .searchAsYouType // Alternatively, for a Search on Submit experience: queryInputInteractor.connectSearcher(searcher, searchTriggeringMode: searchOnSubmi)