Projet

Général

Profil

Bug #30509

la mise à jour de l'indexation ne retire pas correctement de l'index whoosh des objets supprimés

Ajouté par Frédéric Péters il y a environ 5 ans. Mis à jour il y a environ 5 ans.

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

Révision 9006ca9c (diff)
Ajouté par Frédéric Péters il y a environ 5 ans

debian: always rebuild complete whoosh index (#30509)

Révision 836996f5 (diff)
Ajouté par Frédéric Péters il y a environ 5 ans

debian: remove unknown parameter of rebuild_index command (#30509)

Historique

#2

Mis à jour par Frédéric Péters il y a environ 5 ans

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.

#3

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.

#4

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)
#5

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

Formats disponibles : Atom PDF