You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a user searching for a CMS dataset with a known dataset title such as /EG/Run2010A-Apr21ReReco-v1/AOD.
The user copies-pastes the dataset name from a paper into the search box and expects to find the record.
Escaping the /, as mentioned in the previous comment
Changing the "query_string" by a "simple_query_string". Discarded this idea, since it would change some of the other semantics
Do the standard query, and, if it fails, do one of the previous actions. Discarded this idea as well, since it would depend then on the number of / (queries with an even number of those are correct).
So, long story short, the escaping sounds to me as the best option. Incoming PR with that...
Current behaviour
Consider a user searching for a CMS dataset with a known dataset title such as
/EG/Run2010A-Apr21ReReco-v1/AOD
.The user copies-pastes the dataset name from a paper into the search box and expects to find the record.
(1) In production, an invalid query s obtained: https://opendata.cern.ch/search?page=1&size=20&q=%2FEG%2FRun2010A-Apr21ReReco-v1%2FAOD
(2) We have improved the situation during the previous Invenio upgrade sprint in 2021, see #2930. Using master branch at commit 1b8cd22, the exact dataset title search works nicely: http://127.0.0.1:5000/search?q=%2FEG%2FRun2010A-Apr21ReReco-v1%2FAOD&l=list&order=asc&p=1&s=10&sort=bestmatch
(3) However, the recent Invenio upgrade (#3450) made things not work again: https://opendata-dev.cern.ch/search?q=%2FEG%2FRun2010A-Apr21ReReco-v1%2FAOD&l=list&order=asc&p=1&s=10&sort=bestmatch
Expected behaviour
We should find the given dataset when the user copies-pastes the exact dataset title as in 2 above. See remarks in #2930.
The text was updated successfully, but these errors were encountered: