WHERE condition.
Instead of indexing every row in a table, Postgres evaluates the predicate and only indexes rows that match it.
This can reduce index size and improve performance when you only query a subset of a table.
The BM25 index supports partial indexes using the same syntax as PostgreSQL.
WHERE condition, queries must have the same WHERE condition in order for the index to be used.
A query that does not contain the WHERE condition will fall back to a sequential scan, which does not support all of
ParadeDB’s query types and has poor performance.
For example, the following query will not use the partial BM25 index defined above because it does not contain the
description IS NOT NULL predicate: