From: leo-mangold (@leo-mangold) <noreply+leo-mangold@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #263: No results when using index
Date: Wed, 13 Sep 2023 17:05:51 +0000
Message-ID: <gh-pgvector-pgvector-263-c1718004741@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-263@github.com>
References: <gh-pgvector-pgvector-263@github.com>
I also have this issue with `hnsw` for certain input query strings. It also happed to me when I used `ivfflat`.
```
SELECT * FROM table WHERE date_start <= $1 AND (date_end IS NULL OR date_end >= $1) ORDER BY embedding <#> $2 LIMIT $3
```
I have about 300k rows in the entire set and after filtering for date it still leaves me with 15k rows, so i would expect there to be some matches.
When disabling the index I get 53 results for exactly the same query :(