select * from content
where title ilike '%redacted%'
and type = 'tv_show'
returns 7 rows, where required row in row 7 and row 2 has a title that has a Levenshtein distance <= 5. Change local search to pick result with lowest Levenshtein distance <=5 instead of first row with Levenshtein distance <=5
Same issue has not been observed with TMDB search, however it had same potentially flawed logic as local search. Changed to be consistent logic.
Have run bitmagnet reprocess --classifyMode rematch across database with > 400k torrents. Have observed both local search and TMDB search to be working as expected with this patch
returns 7 rows, where required row in row 7 and row 2 has a title that has a Levenshtein distance <= 5. Change local search to pick result with lowest Levenshtein distance <=5 instead of first row with Levenshtein distance <=5
Same issue has not been observed with TMDB search, however it had same potentially flawed logic as local search. Changed to be consistent logic.
Have run
bitmagnet reprocess --classifyMode rematch
across database with > 400k torrents. Have observed both local search and TMDB search to be working as expected with this patch