Typeahead Search Design

Build search-as-you-type and autocomplete on Elasticsearch or OpenSearch: pick the mechanism by content (completion suggester for prefixes of curated terms, search_as_you_type with bool_prefix for mid-phrase matching on documents, edge_ngram at index time with a plain standard analyser at search time), bound index growth (min_gram 2, max_gram 15 to 20), rank with a popularity prior from query logs plus an exact-prefix boost, tolerate typos with fuzziness and prefix_length, filter tenants inside the query, hold p99 under 100 ms with debounce and cancelled requests, and test with replayed keystrokes. Use for "autocomplete suggestions", "search as you type", "edge ngram", "typeahead is slow or returns junk" or "suggestions should tolerate typos". Not for full-query ranking (search-relevance-tuning), the index mapping (search-mapping-design) or the input control (form-design).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 2e5185858d

Frequently asked questions

npx get-skill add greenblacked/typeahead-search-design