Conversation
|
@missinglink hitting this wall in the case when addresses along a street are returned. I'd expect these to be available in numeric order (Dorpstraat 1, Dorpstraat 2, Dorpstraat 3, Dorpstraat 4...), but somehow Dorpstraat 3 only shows up later in the results. The |
|
Hi @emacgillavry, in the case where results have the exact same score then the order of results is non-deterministic. It seems that the order is consistent for the same build but inconsistent between builds, I believe this is because of the internal segment sequence assigned to each document rater than the The linked PR adds Doc values take up a fair bit of RAM and since the Using I don't have the bandwidth right now to do the memory and performance testing required to change this, but hopefully that helps to explain what's going on. |
|
I'd be interested to see the query you're using to test and what other geocoding engines do, I'm not sure sorting DESC is actually the best idea, some engines seem to show them in order of importance, so prominent address on the street (such as businesses) come first in results |
|
Thnx @missinglink for your explanation! Sorry for having high-jacked this issue. We're simply searching (autocomplete and search) addresses within a locality ( |
the current scoring algorithm sorts documents with the exact same score in a non-deterministic way.
this makes the tests brittle and jittery, this PR aims to resolve this by adding a second sorting condition to 'break the tie'.