platform-guideline 1 linked patterns checked
Add recent searches
Explains adding recent searches to autocomplete, limiting displayed entries, separating histories with a storage key, storing submitted searches after Enter, linking or selecting recent queries, and using custom storage.
Read with a purpose
What this source can teach
Use this source to understand a platform convention and the setting it was designed for.
- Start with the original. Open the source and find the guidance or example relevant to your task.
- Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
- Check the setting. Compare the source's platform, people, and constraints with your own decision.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Recently searched | Choose recently searched when entries should be query strings the current user actually submitted, not possible suggestions or opened objects. | Submitting a qualifying search writes or updates a recent-search entry for the current scope when history is on. | Algolia documents recent-search storage keys, visible limits, submitted-query behavior, selection, linking, and custom storage. |
Comparisons supported by this source
- Recently searched vs search suggestions vs saved search vs recently viewed
Algolia documents storage keys, limits, submitted-query behavior, selection, linking, and custom storage for recent searches.
Evidence Role
This source is treated as platform-guideline evidence. Its value comes from the specific claims and setting described above.
Publisher: Algolia. Last checked: .