apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.65k stars 1.03k forks source link

Distance boost added to Suggester [LUCENE-4450] #5516

Open asfimport opened 12 years ago

asfimport commented 12 years ago

A common Suggester use case is to boost the results by closest (auto suggest the whole USA but boost the results in the suggester by geodistance). Would love to get faster response with that. At the Lucene Revolution 2012 in Boston a speaker did discuss using WFST to do this, but I have yet to figure out how to do it).


Migrated from LUCENE-4450 by Bill Bell, updated Oct 18 2012 Linked issues:

asfimport commented 12 years ago

Bill Bell (migrated from JIRA)

See video on http://vimeo.com/43281536

asfimport commented 12 years ago

Sudarshan Gaikaiwari (migrated from JIRA)

I am sorry that my talk was confusing. The modifications I made to the WFST suggester are not for boosting the suggestions by geodistance but to restrict the suggestions to a particular geographical location. The code to do this is available here

https://github.com/sudarshang/lucene-solr

Please see https://github.com/sudarshang/lucene-solr/blob/master/lucene/spatial-suggest/src/java/org/apache/lucene/search/spatial_suggest/WFSTGeoSpatialLookup.java.

I am interested in bring this branch up to date with the current trunk and contributing it to Lucene.

asfimport commented 12 years ago

Simon Willnauer (@s1monw) (migrated from JIRA)

I am interested in bring this branch up to date with the current trunk and contributing it to Lucene.

+1

asfimport commented 12 years ago

Bill Bell (migrated from JIRA)

+1

asfimport commented 12 years ago

Bill Bell (migrated from JIRA)

Sudarshan,

How would you boost by geodistance instead of limiting by a location? Can WFST enable that? Use case:

Search a business name for the whole USA, but show closest to a lat,long first.