fix: ajout méthode is_stale() manquante dans InvertedIndex

This commit is contained in:
Bruno Charest 2026-05-30 17:00:00 -04:00
parent b92fd3da08
commit b76fc64325

View File

@ -361,6 +361,10 @@ class InvertedIndex:
self._sorted_tokens: "SortedList" = SortedList()
self._ready: bool = False # True after initial build
def is_stale(self) -> bool:
"""Return True if the index has not been built yet."""
return not self._ready
def rebuild(self) -> None:
"""Rebuild inverted index from the global ``index`` dict.