analysispreservation.cern.ch icon indicating copy to clipboard operation
analysispreservation.cern.ch copied to clipboard

Update to OpenSearch

Open ParthS007 opened this issue 3 years ago • 1 comments

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

ParthS007 avatar Oct 17 '22 07:10 ParthS007

Findings update:

Package 1 - I-Search

  • [x] Introduction of new engine.py to detect the search
  • [x] api.py return 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_elasticsearch to check_search
  • [x] conf RECORDS_REST_ELASTICSEARCH_ERROR_HANDLERS to RECORDS_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_dsl here. 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_ids to document_search_ids and document_es_indices to document_search_indices in funcs create_percolate_query and percolate_query
  • [x] Remove doc_type using search APIs
  • [x] https://github.com/ParthS007/invenio-oaiserver/commit/bb0c5db471b893c70c3628239bbbff118fca5f8d

Package 6 - I - Indexer

  • [x] rename kwarg param es_bulk_kwargs to search_bulk_kwargs
  • [x] Remove doc_type param
  • [x] Change record_to_index to 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

ParthS007 avatar Oct 17 '22 10:10 ParthS007