-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add support to lang in ngrams_last_token_only_multi
#1493
Conversation
Awesome! Thank you @Joxit |
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 to me.
It would be nice to have some tests for this in https://github.com/pelias/acceptance-tests to prevent regression.
This adds a test for finding [Edo Tokyo Museum](https://pelias.github.io/compare/#/v1/autocomplete?layers=venue&debug=1&text=Edo+Tokyo+Museum) via autocomplete. Connects pelias/api#1296 (comment) Connects pelias/api#1493
Thanks for fixing this @Joxit! I was reading along with the comments yesterday and happened to write an acceptance test to examine this issue more closely, so I've opened pelias/acceptance-tests#535 to bring it in. Thanks @bboure for the report and test case as well! |
Yeah, thx @orangejulius for the acceptance test 😄 |
64b6210
to
9539912
Compare
This adds a test for finding [Edo Tokyo Museum](https://pelias.github.io/compare/#/v1/autocomplete?layers=venue&debug=1&text=Edo+Tokyo+Museum) via autocomplete. Connects pelias/api#1296 (comment) Connects pelias/api#1493
Heeeeey @Joxit I was investigating a bug report today and I noticed something on our dev server which looks incorrect: Dev server is running a newer The screenshot shows it's using |
Hi @missinglink Yes you're right, I think this is due to this PR 🤔 Maybe I should use |
It's not super urgent but we should fix it, could you please open an issue/pr so we don't forget? |
Some of those query views are a hot mess, it's becoming increasingly difficult to figure out which does what, where. |
Ok, I will open an issue and work on it later (I tried something but it will be harder than I expected 😢) api/query/view/admin_multi_match_first.js Lines 32 to 37 in 5d202c4
😆 I agree 😅 |
👋 I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback.
Here's the reason for this change 🚀
@bboure found an issue in autocomplete multi-lang field, Edo Tokyo Museum is not returned see #1296 (comment)
Here's what actually got changed 👏
Since #1300 we are using two field for autocomplete search,
name.default
andname.{lang}
.name.{lang}
was missing in thengrams_last_token_only_multi
queryHere's how others can test the changes 👀
Edo Tokyo Museum should now work