From bcf3457c287f8535cf58a3c4a14a4a36f2599659 Mon Sep 17 00:00:00 2001 From: Steve Chavez Date: Fri, 19 Sep 2025 13:49:30 -0500 Subject: [PATCH] docs: note index on automatic tsvector (#4344) --- docs/references/api/tables_views.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/references/api/tables_views.rst b/docs/references/api/tables_views.rst index 4d0710f41..56ac679d8 100644 --- a/docs/references/api/tables_views.rst +++ b/docs/references/api/tables_views.rst @@ -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