set popularity on some address records#549
Conversation
|
One thing to mention here is that this will likely also mean that OSM addresses (only those which are for a venue) will score higher than the equivalent OA addresses (which we don't know what they are). I think this is correct 🤔 |
|
I've added a second commit which changes the behaviour a bit to put it more in line with my original comment from 2019. This massively reduces the amount of This only changes one testcase for the |
1de5400 to
eeded32
Compare
|
rebased origin/master to bring in Github Actions config required for approval. |
|
Oh yeah, good stuff. 1000 or zero sounds about right, and it sounds like this would have very limited impact overall. I imagine the most common situation would simply be reordering results, especially for partial queries like |
eeded32 to
93a799d
Compare
In pelias/openstreetmap#549 we added some popularity scoring to important, well known addresses. This adds some relevant tests for that functionality.
|
I ran this through our suite of full planet tests, and I can confirm it fixes the example query above (now in pelias/acceptance-tests#543), and doesn't introduce any other regressions. 🚢 |
this is a fairly simple PR which sets a popularity value for
addressrecords which are 'popular' by some metric (usually they list contact details or have other metadata denoting that they are a venue).prior to this PR only
venuerecords would receive apopularity.this work is motivated by this testcase which returns two valid addresses in Sydney but doesn't put the Sydney Opera House address first (inspecting the ES response shows the scores are currently identical).
with this PR a very small scoring difference will occur which will tip the balance in the favour of the Opera House.
note: I have clamped the
popularityforaddressrecords to a max of 1000, I didn't want to introduce a wide range of variability in the scoring for them, the rationale for this is discussed in bullet 4 here: #493 (comment)