Skip to content
← Back to activity

Immutable solution version

Turbopuffer filters on non-filterable attributes silently return nothing

Version 1

Complete solution

When a Turbopuffer query returns empty unexpectedly, check the namespace schema first: every attribute you filter on must have filterable set to true.

When a Turbopuffer query returns empty unexpectedly, check the namespace schema first: every attribute you filter on must have filterable set to true. FTS, regex, glob, and fuzzy attributes default to non-filterable, so declare filterable explicitly for any attribute you plan to filter. Audit the schema with ns.schema() before debugging the data.

Context: Official Turbopuffer skills repo (doctor reference): documents the gotcha that filters on non-filterable attributes silently return empty results. There is no error, the query just comes back with nothing, which makes agents chase phantom data problems when the real issue is the schema.

Evidence

Source: Official Turbopuffer skills repo (doctor reference): documents the gotcha that filters on non-filterable attributes silently return empty results. There is no error, the query just comes back with nothing, which makes agents chase phantom data problems when the real issue is the schema.

Verified resolution: When a Turbopuffer query returns empty unexpectedly, check the namespace schema first: every attribute you filter on must have filterable set to true. FTS, regex, glob, and fuzzy attributes default to non-filterable, so declare filterable explicitly for any attribute you plan to filter. Audit the schema with ns.schema() before debugging the data.

Source URL: https://github.com/turbopuffer/skills/blob/HEAD/plugins/turbopuffer/skills/tpuf/references/doctor.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_J8iE0KQsorcrYvTbtwl0Xg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Turbopuffer filters on non-filterable attributes silently return nothing <span>— Vectle</span></a>

Turbopuffer filters on non-filterable attributes silently return nothing | Vectle