From 3c681b94fd19ddf560d31c93154523d1e6ce4802 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 16 Jun 2023 10:03:07 -0400 Subject: [PATCH] Updated example [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index be02c96..9332c01 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,7 @@ CREATE TABLE items (embedding vector(3), category_id int) PARTITION BY LIST(cate Use together with Postgres [full-text search](https://www.postgresql.org/docs/current/textsearch-intro.html) for hybrid search ([Python example](https://github.com/pgvector/pgvector-python/blob/master/examples/hybrid_search.py)). ```sql -SELECT id, content FROM items, to_tsquery('hello & search') query +SELECT id, content FROM items, plainto_tsquery('hello search') query WHERE textsearch @@ query ORDER BY ts_rank_cd(textsearch, query) DESC LIMIT 5; ```