[API Search] Database name displayed in docs is the one from the first search request
Summary
When doing an API search (B), if a docs was already found in another API search (A), the database name in the metadata is A. So when metadata are displayed in the docs, we expect to see B and not A.
Steps to reproduce
Make two corpus from an API search in which the result contains same docs.
What is the current bug behavior?
We expect to see B displayed in metadata and not A.
What is the expected correct behavior?
It should display B in metadata.
Relevant logs and/or screenshots
metadata displayed for a PubMed API search
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)