3 ms·
You can do to_tsvector “plain” and keep the strings intact. No lemming, stemming. We use plain tsvectors on a gin index and change the queries to allow prefix
by nojvek 3y ago
You can do to_tsvector “plain” and keep the strings intact. No lemming, stemming.
We use plain tsvectors on a gin index and change the queries to allow prefix based searching. So “wo he” matches “hello world”.
Perhaps I should write a blog about it. Took me a few days to read PG documentation to get where we are at.
The only thing it doesn’t handle is typo tolerance.
- philippemnoel 3y agoTsvector is amazing and it goes a long way, but unfortunately as you say it lacks some of more complex FTS features like typo tolerance, language tokenizers, etc.