lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: GIS
Date Tue, 16 Nov 2004 14:51:56 GMT
Guillermo Payet wrote:
> The fact that Lucene stores and indexes (or seems it seems) all terms 
> as Strings and that there is no NumericTerm makes me think that I 
> might be missing something and that this migh be a much bigger deal
> than I think?

You could write a HitCollector that uses 
FieldCache.getFloats("latitude") and FieldCache.getFloats("longitude") 
to efficiently lookup the latitude and longitude of each textual match. 
  Then combine the distance score with the text score.

Doug



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message