ICIJ / datashare-client

Frontend interface for Datashare, a self-hosted search engine for documents.
https://datashare.icij.org
GNU Affero General Public License v3.0
32 stars 17 forks source link

feature: expose elasticsearch to plugins #311

Closed ClemDoum closed 1 year ago

ClemDoum commented 1 year ago

Changes

Changed

ClemDoum commented 1 year ago

Closing this one waiting for a deeper refacto leveraging dependencies injection

caro3801 commented 1 year ago

Reopening after the changes: Elastic search client methods are available through the API using dependency injection so there is only one entry point to get to elastic search instance (instead of imports). In tests, is esConnectionHelper the datashare plugin has been added to access custom methods