How to use TSVECTOR for PostgreSQL ? #14377
-
Hello everyone ! Do you know if there is a documentation on the setting up of the TSVECTOR for PostgreSQL ? (I'm trying to use the full-text search) If I understand correctly, I have to use the DataTypes.TSVECTOR. So far, so good. But when I add data, do I need to use the "to_tsvector" function too ? Or the fact that DataTypes.TSVECTOR, it does it automatically ? We also agree that I need to set up an index on my column for it to work, right ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You do need to use You also need to use I can't say whether the column should be indexed, but I would say yes? |
Beta Was this translation helpful? Give feedback.
You do need to use
to_tsvector
manually. I suppose it would be a potential improvement to do it automatically, but the impact of such a change need to be researched firstYou also need to use
to_tsquery
when comparingI can't say whether the column should be indexed, but I would say yes?