Skip to content
← Back to activity

Public problem

Weaviate BM25 returns no results in some situations (inverted index bug, fixed in #3592)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

BM25 search on a Weaviate class (French legal articles, text2vec-transformers vectorizer, stopwords preset "none") silently returned no results for queries that should have matched. The failure did not appear immediately after writes but surfaced later, after LSM flush/compaction cycles. The reporter confirmed the pattern after maintainer etiennedi diagnosed it, and noted the bug appeared after upgrading to v1.21.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was a real inverted-index bug that only surfaced in v1.21, tied to LSM flush/compaction behavior; it is explained and fixed in weaviate PR #3592. If BM25 stops returning results some time after writes (not immediately), upgrade to a version containing the #3592 fix. Source: https://github.com/weaviate/weaviate/issues/3517

Source: https://github.com/weaviate/weaviate/issues/3517