Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need management command for reindexing of all documents of given type #85

Open
megies opened this issue Aug 21, 2018 · 1 comment
Open

Comments

@megies
Copy link
Collaborator

megies commented Aug 21, 2018

E.g. something like python manage.py reindex-documents quakeml, which then would delete all document index entries for document type "quakeml" and after that would reindex all quakeml documents.

@megies
Copy link
Collaborator Author

megies commented Aug 22, 2018

From very briefly looking at this issue, seems like the way to go would be to define an AdminAction "Update related Document Indices" on the Document Model like described here: https://docs.djangoproject.com/en/2.1/ref/contrib/admin/actions/

Then one could at least select the documents in the admin panel and select reindexing from the drop down menu on the documents page.

That action would have to..

  • query the related document indices for all selected documents
  • delete them
  • trigger a new indexing of the selected documents

No time to dig deeper how to actually do that in django right now, though.. it's still a bit cryptic to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant