Use default index + user-lang index in autocomplete#1300
Use default index + user-lang index in autocomplete#1300orangejulius merged 5 commits intomasterfrom
Conversation
|
It seems that Request:
|
|
Okay, I will wait your PR to fix this then. |
3548f0f to
e266722
Compare
|
Rebase to master with the new pelias parser 😄 I added some acceptance tests too |
Some news about this PRI did some acceptance tests, and there is no change between master and this branch and, as is, this PR is a great improvement for Pelias API. There are some limitations, such as the search of This means that if we do an autocomplete search of Why ?Because the API will search a document with a name property How to get rid of this ?We do not have many solutions... I found only 2.
IMO, the first solution is the simplest, but will increase significantly the ES index because this must be done for all 650M documents... The second issue will be "how to get this data at import time ?" using WOF + placehoder for alt names (more http call + complexity) ? Add alt names in WOF Admin lookup (more memory usage) ? Thoughts @missinglink @orangejulius ? |
e266722 to
5cd3882
Compare
|
Sync again with master |
5cd3882 to
7dc1666
Compare
7dc1666 to
4441892
Compare
|
Sync with master |
|
Added one commit, now I use the |
cb171a5 to
d8bf26f
Compare
missinglink
left a comment
There was a problem hiding this comment.
Hey, firstly sorry for not getting to this sooner 🙇♂️
The code is nice & clean and I think this is good to merge.
Although not explicitly specified the best fields query type (the default) is the correct one to use here.
Nice work 👍
|
I used
Acceptance tests for this PR are here : pelias/acceptance-tests#505 🚀 |
|
Oh sorry, I think I got confused 👍 |
d8bf26f to
142b09a
Compare
|
I finally tested this out and it is awesome. It indeed doesn't appear to break anything, but should offer huge improvements out of the box for people who have their browser set to non-English languages. Yet again, another PR I should have dealt with far, far sooner. <3 @Joxit I rebased this again and fixed a tiny issue that had cropped up with some string validation (only an issue because I let this PR sit for so long). I'm going to do a little performance testing on this (somehow), but expect it to be merged soon. |
|
Another update here, we have been testing this out with a few Geocode Earth customers (it's behind a feature flag they can opt into) and it all looks amazing so far. I plan to merge this soon :) |
|
Yeeeeees !! 😄 I'm glad this PR works great and is appreciated 😄 |
37d5261 to
6ac599d
Compare
|
Sync with master for conflicts |
A small workaround, that makes results more noisy but at least is quite easy to put in place: |
The rest will come with pelias/api#1300
The lang boos is 2x higher than default index to promote lang matching first
6ac599d to
c108a37
Compare
|
Okay, today's the day :) 🥳 🎉 🎈 |
|
Yeaaaaaah !!!! :D 🚀 |
These were actually all fixed back in pelias/api#1300, but we hadn't marked them passing until now.
EDITED
The lang boos is the same as the default index.
The default lang is
en.I ran an acceptance test on our production server, there are no regressions 🎉
related: #1296
superseed: #1298
Fixes pelias/pelias#767