UUDigitalHumanitieslab / I-analyzer

The great textmining tool that obviates all others
https://ianalyzer.hum.uu.nl
MIT License
7 stars 2 forks source link

Indexing lifecycles hooks #1536

Open JeltevanBoheemen opened 5 months ago

JeltevanBoheemen commented 5 months ago

Is your feature request related to a problem? Please describe. Some functionality would require code to be run before/after ES indexing.

Describe the solution you'd like Indexing should supply hooks that can be used to execute. Proposed hooks:

Possible solutions: Django signals. If we want to fire these from models, requires #1533

Describe alternatives you've considered Just adding the code on index requests.

Additional context Would be used in e.g. #1535

lukavdplas commented 5 months ago

A problem with a post-index signal (or adding the code at the end of the index function) is that we often index (or re-index) on a separate server. I don't think there is an "easy" solution to trigger a signal on one server after updating the index from another?