lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Rodenburg <jeff.rodenb...@gmail.com>
Subject Re: Sort by relevance+distance
Date Mon, 19 Sep 2005 17:36:20 GMT
This is interesting, one I had not considered.
Mark - are there any code samples that implement this approach? Or maybe 
something similar in approach?

thanks,
jeff

On 9/19/05, mark harwood <markharw00d@yahoo.co.uk> wrote:
> 
> I think the HitCollector approach was fine but needed
> a couple of changes:
> 1) use a PriorityQueue subclass in place of the
> SortedSet to keep only the top n scoring docs
> 2) multiply lucene score by a distance measurement
> based on the current doc's location (doc location
> being read from a cached array of type
> Location[reader.maxDoc] )
> 
> Cheers
> Mark
> 
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
> voicemail http://uk.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message