Skip to main content

Prepare/execute flow

You can perform any operations between prepare and execute:

Passing search IDs between pages

The search_id returned from prepare is valid for 15 minutes and can be reused across page navigations.
Passing search IDs ensures consistent ranking, preserved merchandising rules, accurate analytics, and reduced server load.

Concurrent API calls

Call prepare and autocomplete concurrently for search-as-you-type:

Next steps

Caching

Learn how the SDK caches requests and results.

Performance

Optimize your implementation for speed.