inveniosoftware / invenio-oaiserver

Invenio module that adds more fun to the platform.
https://invenio-oaiserver.readthedocs.io
MIT License
3 stars 44 forks source link

Error when creating a set with a search pattern #191

Closed sebdeleze closed 1 year ago

sebdeleze commented 3 years ago

invenio: 3.4 invenio-oaiserver: 1.2.0

Describe the bug

An error is thrown when trying to create a OAI-PMH set with a search pattern. The error happens when the application have more than one index in elasticsearch.

In _new_percolator function, it loops over all indices and try to create the percolator for all items, and not only for the desired index.

Expected behavior

The percolator must be created only for index specified in OAISERVER_RECORD_INDEX configuration.

sebdeleze commented 3 years ago

Any news?