# Make PgVector prefix matching actually match prefixes

> PgVector(prefix_match=True) used to be a silent no-op: it appended a * and then routed through websearch_to_tsquery, which ignores wildcards.

- Published: 2026-05-21
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/make-pgvector-prefix-matching-actually-match-prefixes
- Markdown: https://agno-com-nine.vercel.app/articles/make-pgvector-prefix-matching-actually-match-prefixes.md

`PgVector(prefix_match=True)` used to be a silent no-op: it appended a `*` and then routed through `websearch_to_tsquery`, which ignores wildcards. It now routes through `to_tsquery` with proper tokenization, so a partial query like `"ani"` full-text matches `"animal"` the way the docs always described. A new cookbook walks through the help-center typeahead use case it unlocks.
