Skip to content

Conversation

@stereosteve
Copy link
Contributor

@stereosteve stereosteve commented Jul 8, 2025

Users, tracks, playlists all get a suggest field which is analyzed with 2gram + 3gram analyzer. So searching infix will find some_infix_handle.

Also uses a minimum should match of 80% on the ngram field AND enables fuzzy AUTO... so we have fuzzy ngrams. So searching monoist will surface monist

This increases recall a fair bit, so almost all queries will likely have results.

If results are verging on "irrelevant" (i.e. precision of top 10 results is bad) there are a few options:

  • increase the minimum_should_match to 90%
  • increase boost of specific fields like title^20
  • add more should query terms with higher boost
  • adjust or remove the fuzzy setting

@stereosteve stereosteve merged commit b3aa1f5 into main Jul 8, 2025
3 checks passed
@stereosteve stereosteve deleted the sp-ngram branch July 8, 2025 16:42
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.

3 participants