Skip to content

feat: autocomplete / query suggestions #7

Description

@arrrnav

Surface vocabulary terms as the user types.

Approach

  • Build a trie from document_freqs keys at startup — no reindexing needed
  • Expose a /suggest?prefix=<str> endpoint returning the top N matches
  • Hook into the frontend search input with a debounced fetch, showing results in a dropdown

Notes

  • Prefix lookup is O(k) where k = query length
  • Trie construction happens once at server startup alongside the existing index load

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions