The discussion revolves around search problems in Discourse v2.3. netpositive reported issues with search results containing unrelated posts and ignoring options like “Matching in title only.” They also mentioned that ignoring accents is not an option due to potential inaccurate results.
sam suggested rebuilding the full search index after changing the site setting search ignore accents, but this did not solve the problem. netpositive provided an example of a search query that returns incorrect results.
zogstrip tested the issue on try.discourse.org and found that the search results were correct. They asked netpositive to share their site settings, which were provided.
zogstrip then tried the search with the default locale set to “magyar” and found that it worked. However, netpositive reported that upgrading to the latest version did not solve the issue.
netpositive eventually discovered that the problem is related to the full-text search in PostgreSQL and how the text is parsed. They hope that using hunspell dictionaries in PostgreSQL will improve the situation, but the Hungarian dictionary is currently broken.
Thanks for the hint! Unfortunately it doesn’t solve the problem
It’s quite weird that some pre-2.3 posts contain search URLs (some has multi-word search terms with different accents) which are working fine and return valid result while new search queries are not working and give back not relevant posts.
Unfortunately accents can’t be ignored because it would result in inaccurate results. Where should I look to fix this issue? Maybe downgrading back to 2.2 (it’d be just a temporary fix though )?
I’ve made a fresh local install and “kávé” worked OK but some other words did not. It seems the problem is related to the full text search in PostgreSQL and how the text is parsed. For example from search word “kávé” will be “ká” after normalization and that normalized form will be matched to the text so “kávé” and “káposzta” are both correct results for the FTS
I hope the situation will improve with using hunspell dictionaries in PostgreSQL but currently the Hungarian one is broken