chartes / dico-topo-app

API de l’application DicoTopo (https://dicotopo.cths.fr/)
2 stars 2 forks source link

(Re)indexation process : clarify expectations #78

Open vicpsl opened 2 months ago

vicpsl commented 2 months ago

Currently the app CLI offers a document range (re)indexation option to (re)index documents between ids X and Y, which is useful to partially (re)index with the command : python3 manage.py --config={dev/prod} db-reindex --host=http://localhost --between=X,Y

However, the (re)indexation is based on the database model "id" field :

As a result, when the option --between=X,Y is used : only PlaceOldLabel documents between X, Y are (re)indexed.

Is this correct ? If not, how should the (re)indexation work ?