-
Notifications
You must be signed in to change notification settings - Fork 42
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
contrib: names: update field boosts and mapping #370
contrib: names: update field boosts and mapping #370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a couple of comments.
invenio_vocabularies/contrib/names/jsonschemas/names/name-v2.0.0.json
Outdated
Show resolved
Hide resolved
invenio_vocabularies/contrib/names/mappings/os-v1/names/name-v2.0.0.json
Show resolved
Hide resolved
ac52df8
to
557337c
Compare
can you add a test of the suggest endpoint like https://github.com/inveniosoftware/invenio-vocabularies/blob/master/tests/contrib/funders/test_funders_resource.py#L116 :) |
c8cd61d
to
9ab62f2
Compare
9ab62f2
to
64f876b
Compare
ES tests are failing |
@jrcastro2 ES tests are removed in #372 😅 |
invenio_vocabularies/contrib/names/mappings/os-v1/names/name-v2.0.0.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks, good, needs the tests to pass
invenio_vocabularies/contrib/names/mappings/os-v2/names/name-v2.0.0.json
Outdated
Show resolved
Hide resolved
invenio_vocabularies/contrib/names/mappings/os-v2/names/name-v2.0.0.json
Outdated
Show resolved
Hide resolved
b4204d1
to
e4a27b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sakshamarora1 there is only one comment on this from @slint. Otherwise, it seems good to go!
Fixes: inveniosoftware/invenio-app-rdm#2756
The names in the database and index are inverted, therefore the suggest API first tries to search on the last name and prioritizes that due to how edge ngram works for the suggest API.
This solution add suggest API for given name for better results.
ATTENTION
tests fail due to #372, to be rebased and merged after #372