cfpb / ccdb5-api

An API that provides an interface to search complaint data.
Creative Commons Zero v1.0 Universal
14 stars 16 forks source link

switch from elasticsearch python library to opensearch-py #190

Open Colin-Seifer opened 2 years ago

Colin-Seifer commented 2 years ago

This changes the backend python libraries from ElasticSearch to OpenSearch. This does not change any functionality within ccdb5-api, only how complaints are indexed using the backend libs.

higs4281 commented 2 years ago

This does not change any functionality within ccdb5-api, only how complaints are indexed using the backend libs.

To be clear, code in this repo does not index data. The API builds search queries and sends them to OpenSearch on behalf of the front end. So the switch to using opensearch-py could indeed change ccdb5-api functionality, depending on any differences with the former lib.

Indexing is handled by https://github.com/cfpb/ccdb-data-pipeline, and that repo is still using elasticsearch-py.

higs4281 commented 2 years ago

Data Products is currently testing a new front-end feature that does not depend on the API. When we clear that hurdle, we can deploy this PR to a DEV server and let Consumer Response give it a workout.