Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@coolboymew @lanodan
> probably wouldn't use these very specific words with hyphen -
Most search boxes (Pleroma's included) do what is called "stemming", so the words get much less specific, and usually normalizing the query removes the hyphen. You can play with it if you have Postgres laying around somewhere:
=# select plainto_tsquery('pg_catalog.english', 'asset-stripping backstabbing cyberstalking cyber-fraud');
'asset-strip' & 'asset' & 'strip' & 'backstab' & 'cyberstalk' & 'cyber-fraud' & 'cyber' & 'fraud'
The infamous case of over-enthusiastic stemming in Postgres is "marketing":
# select plainto_tsquery('pg_catalog.english', 'marketing');
'market'
Of course, "I'm going to the market" should probably not show up as a result if you type "marketing" in the search box.
> At best it seems like it's trying to get a bunch of unhappy people instead
This is possible.