Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select record by title should use exact string matching #56

Open
tiborsimko opened this issue Sep 23, 2020 · 2 comments
Open

select record by title should use exact string matching #56

tiborsimko opened this issue Sep 23, 2020 · 2 comments

Comments

@tiborsimko
Copy link
Member

Looking for records by title sometimes does not work due to returning more than one record:

$ cernopendata-client get-record --title '/BTau/Run2010B-Apr21ReReco-v1/AOD'
More than one record fit this title. This should not happen.

See two records: http://opendata.cern.ch/search?page=1&size=20&q=title:%22%2FBTau%2FRun2010B-Apr21ReReco-v1%2FAOD%22

However, there is precisely one dataset record matching the given title exactly, record ID 1, which should be returned...

We could look for "exact" string match instead of the "substring" match, as it were, to fix this problem. Note that the issue may need to amend Elasticsearch settings on the server side.

Originally posted by @tiborsimko in #19 (comment)

@utkarsh147-del
Copy link

I want to work on this issue.Please assign this to me.

@tiborsimko
Copy link
Member Author

Hi @utkarsh147-del, thanks for your kind offer, however this issue necessitates server-side upgrades on the digital repository side, e.g. see cernopendata/opendata.cern.ch#2930 and many issues in the forthcoming Infrastructure-Upgrade sprint. Hence we plan to address search upgrades there more holistically...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants