Skip to content

CU-8699u4p99: Explicitly add elasticsearch dependency. #23

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mart-r
Copy link
Collaborator

@mart-r mart-r commented Jul 15, 2025

Also allow later eland versions.

The previous requirements.txt didn't specify elasticsearch as a dependency. Though parts of the project do use and require it.
At the same time, an eland requirement was specified, which mean a compatible elasticsearch version was available.
This was most likely because some time ago (before Feburary 20 2023; medct v1.7.0) medcat itself declared an elasticsearch dependency and working_with_cogstack was probably trying to work with the version that the library supported.

This PR explicitly states the elasticsearch dependency.
Though I've allowed for a more wide range than before, on both elasticsearch and eland.

This is (currently) set to ES8 because (as far as I know) some sites still use ES8 (e.g KCH), while other sites use ES9 (GSTT).

PS:
I am not fully sure whether this setup would work for both ES8 and ES9. But I've left it at v8 for now.

PPS:
Currently, none of the ES-specific stuff is automatically tested (as far as I know). So it's hard to tell what does and doesn't work. Adding automated tests for this is on the roadmap, but is waiting on a few other things to happen first.

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

Successfully merging this pull request may close these issues.

1 participant