Geolocation Ranking in Solr

What is the correct way to implement a custom ranking algorithm for Solr / Lucene?

I read about Zvents introducing distance weighting ranking for documents that match events in a specific geographic area ( http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Zvents ).

I would like to do something similar: I am indexing ads in different cities, and I would like to increase the relevance of nearby ads in a specific place.

+3
source share
1 answer

Local Lucene is a project designed to add local search to Lucene. Basically, you add spatial coordinates to index fields. Then you need to decide, based on your index structure, whether it is better to first search according to text matches, and then filter by geographic location or vice versa. Lucene in Action provides an example of a spatial result filter. the upcoming second edition is likely to have more in that direction. See also the wiki page of LocalSolr .

+5
source

Source: https://habr.com/ru/post/1712909/


All Articles