analysispreservation.cern.ch
analysispreservation.cern.ch copied to clipboard
Update to OpenSearch
Finish the PR: https://github.com/cernanalysispreservation/analysispreservation.cern.ch/pull/2459
- [x] Check with the changes done in invenio for Open search release
- [x] Amend the Pull request according to changes required
Findings update:
Package 1 - I-Search
- [x] Introduction of new
engine.pyto detect the search - [x]
api.pyreturn changed accordingly. - [x] https://github.com/ParthS007/invenio-search/commit/8516d069cab1ba61cb3ebccf089c8c600e576b29
Package 2 - I-R-Rest
- [x] Update the new i-search changes
- [x] rename func
check_elasticsearchtocheck_search - [x] conf
RECORDS_REST_ELASTICSEARCH_ERROR_HANDLERStoRECORDS_REST_SEARCH_ERROR_HANDLERS - [x] https://github.com/ParthS007/invenio-records-rest/commit/4ab947c72b537058c44448655e536cb6679e0c00
Package 3 - I -Q - Parser
- [x] We can skip changing anything here since we only require
os_dslhere. No upstream changes either.
Package 4 - I - Deposit
- [x] https://github.com/ParthS007/invenio-deposit/commit/3b5f91042eb8b1a7fb943a3c6a03ad0c3aa81c70
Package 5 - I - Oaiserver
- [x] rename kwargs
document_es_idstodocument_search_idsanddocument_es_indicestodocument_search_indicesin funcscreate_percolate_queryandpercolate_query - [x] Remove
doc_typeusing search APIs - [x] https://github.com/ParthS007/invenio-oaiserver/commit/bb0c5db471b893c70c3628239bbbff118fca5f8d
Package 6 - I - Indexer
- [x] rename kwarg param
es_bulk_kwargstosearch_bulk_kwargs - [x] Remove
doc_typeparam - [x] Change
record_to_indexto return only the index and not a tuple with index and doc type. - [x] Remove the config var
INDEXER_DEFAULT_DOC_TYPE - [x] https://github.com/ParthS007/invenio-indexer/commit/c4e8ed6786fb707627da8d5deea1eb353f3eed88