From: mgoldenbe (@mgoldenbe) <noreply+mgoldenbe@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Wed, 25 Oct 2023 12:44:39 +0000
Message-ID: <gh-pgvector-pgvector-259-c1779196292@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
@jkatz
> To look up from both indexes at the same time, pgvector would have to add support for bitmap scans in `hnsw`.
Why not simply force the desired behavior in the query itself by using a subquery in `FROM`? For example, the subquery might compute the table filtered using the regular index, while the outer query would operate on the filtered table.
If this approach works, does it still require a separate partial index for each category or would it work even with a single full index?