CentreForDigitalHumanities / CentreForDigitalHumanities/Textcavator

Indexing lifecycles hooks

Open
#1,536 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
12
Forks
3
Avg merge
3d 3m
Merged PRs (30d)
9

Description

**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:
- post-index
- pre-index (optional/debatable)

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing Elasticsearch index requests and review the related issues #1533 and #1535. Define and implement the proposed post-index hook, resolve whether a pre-index hook is needed, and verify that indexing callers can execute the hooks as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, python
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.