docs: note index on automatic tsvector (#4344)

This commit is contained in:
Steve Chavez
2025-09-19 13:49:30 -05:00
committed by GitHub
parent 9f056ac756
commit bcf3457c28
+9
View File
@@ -217,6 +217,15 @@ This allows using the ``fts`` operator on ``text`` and ``json`` types out of the
curl --get "http://localhost:3000/people" \
-d "my_json_column=not.phfts(english).The%20Fat%20Cats"
.. important::
To ensure this operation is fast, you need to create an index on the expression:
.. code-block:: postgres
CREATE INDEX idx_people_col ON people
USING GIN (to_tsvector('french', my_text_column));
.. _v_filter:
Vertical Filtering