Skip to content
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

Order of results is unexpected #47

Open
azaroth42 opened this issue Aug 11, 2021 · 1 comment
Open

Order of results is unexpected #47

azaroth42 opened this issue Aug 11, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@azaroth42
Copy link

If I search for (e.g.) "Christchurch, New Zealand", then the first entry in the list isn't Christchurch, it's New Zealand. Yet the second hit is Christchurch, New Zealand. I don't understand which ranking algorithm would list the country without the city name higher than the more specific, matched place within the country.

@kgeographer kgeographer added question Further information is requested enhancement New feature or request labels Aug 11, 2021
@kgeographer
Copy link
Member

The current Elasticsearch match query finds records with any of the words in the query, so New Zealand is returned (as are any records with 'new' in their variants. There is no ranking performed in ES, but result list is sorted by # of links (biggest set/graph). This was a compromise intended to return expected results for 'Mount {toponym}' and '{toponym} Mountain'. The implementation could certainly use improvement from an ES expert! Not closing -- adding 'enhancement' label. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants