Skip to content

Conversation

@PouyaMohseni
Copy link
Contributor

@PouyaMohseni PouyaMohseni commented Dec 26, 2025

  • Added /suggest endpoint with weighted query support.
  • Created frontend static drop-down list for autocomplete suggestions.
  • Integrated Solr endpoint to fetch interactive suggestion lists.
  • Made suggestions case-insensitive and deduplicated results.
  • Highlighted matched text in the suggestion bar.
  • Added notranslate and force-ltr to suggested fields for proper display.

PS: <datalist> was not usable for the needs, so a new list was implemented
resolves #319

ScreenRecording

- endpoint at /suggest
- use with `query*` confg
- create `SolrSuggest` for solr wildcard query
- create suggest list in `.ts` by sending the query through the view
- introduce `suggest_text_type` as a dedicated field type because `text_general` contains NGram which can create loops in suggestions.
- Solr does not store suggestions in a case-insensitive way, so query for the top 15 matches and filter case-insensitively in Django.
- deduplicate suggestions and return up to 5 top results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Search] Show suggested search result when user inputs

2 participants