Bug #30509
la mise à jour de l'indexation ne retire pas correctement de l'index whoosh des objets supprimés
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
10 février 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
>>> from whoosh import query >>> q = query.Term("django_ct", "data.externallinksearchitem") >>> backend.index.searcher().search(q, limit=None) Out[38]: <Top 49262 Results for Term('django_ct', 'data.externallinksearchitem') runtime=0.402031898499>
vs
>>> from haystack.utils.loading import UnifiedIndex >>> ui = UnifiedIndex() >>> ui.build() >>> len(ui.indexes[combo.data.models.ExternalLinkSearchItem].objects.all()) 34
Fichiers
Révisions associées
debian: remove unknown parameter of rebuild_index command (#30509)
Historique
Mis à jour par Frédéric Péters il y a environ 5 ans
- Fichier 0001-debian-always-rebuild-complete-whoosh-index-30509.patch 0001-debian-always-rebuild-complete-whoosh-index-30509.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Patch qui contourne le problème en reconstruisant totalement l'index à chaque coup.
À étudier plus tard, si ça arrive encore avec les versions stretch de django-haystack/whoosh, puis avec la version de django-haystach de stretch-backports.
Mis à jour par Christophe Siraut il y a environ 5 ans
- Statut changé de Solution proposée à Solution validée
À étudier plus tard, si ça arrive encore avec les versions stretch
Je laisserais la ligne originale commentée avec un lien vers le présent ticket; ou alors créer un autre ticket pour nous le rappeler.
Mis à jour par Frédéric Péters il y a environ 5 ans
- Statut changé de Solution validée à Résolu (à déployer)
Voilà j'ai ajouté un commentaire au fichier cron.
commit 9006ca9cab45d0f29fb27b796d4e222c1b485c60 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sun Feb 10 20:45:39 2019 +0100 debian: always rebuild complete whoosh index (#30509)
Mis à jour par Frédéric Péters il y a environ 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
debian: always rebuild complete whoosh index (#30509)