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

search: exact dataset title #2930

Closed
tiborsimko opened this issue Nov 26, 2020 · 2 comments · Fixed by #3054
Closed

search: exact dataset title #2930

tiborsimko opened this issue Nov 26, 2020 · 2 comments · Fixed by #3054

Comments

@tiborsimko
Copy link
Member

Revise tokenisers and analysers so that exact searches would work.

For example, for the dataset http://opendata.cern.ch/record/1, the following query does not give anything:

/BTau/Run2010B-Apr21ReReco-v1/AOD

even though this is exact match with record title.

It even leads to *Error: Invalid query", most probably due to the use of slashes.

The users have to use double quotes:

"/BTau/Run2010B-Apr21ReReco-v1/AOD"

which finds the record.

However, forcing the use of double quotes is not very user-friendly.

Let's see if we can amend Elasticsearch mappings and analysers so that exact matches will be returned directly.

@utkarsh147-del
Copy link

BTau//Run2010B-Apr21ReReco-v1//AOD

By putting double slash,maybe it can work

@ParthS007 ParthS007 self-assigned this Jan 14, 2021
@ParthS007 ParthS007 moved this from Ready for work to In work in Infrastructure-Upgrade Jan 26, 2021
@tiborsimko
Copy link
Member Author

@ParthS007 When changing ES7analysers,tokenisers, in addition to the full version "/BTau/Run2010B-Apr21ReReco-v1/AOD", please pay atenttion that the the whole thing should be treated as one word (with / being a normal character), but also the string should get parsed into substrings like "BTau" (with / being a separator), so that when user search for the word BTau, they would also find this title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants