fergiemcdowall / norch

A search server that can be installed with npm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation: Geographical proximity sorting

eklem opened this issue · comments

Not strictly needed for the #79 , but good to have.

Sorting is a slightly bigger change. Just now, results are always sorted on tf-idf score, but it would be great if you could define other fields to sort on (price, height, etc, etc.)

Geographical proximity is a special case because you are sorting on a value that is derived query time, but it could absolutely be done

Leave it be for now, we'll understand when it's important to do.

I think that the concept of sorting on arbitrary fields is something that could be in the code at some point in the future

I believe that some magic can be done here already with geohashes...

Sooo, with geohashes, this could be a case for search-index-cookbook ?

I'll close this an make an issue over at search-index-cookbook.