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 02:17:42 GMT
I like Erik's suggestion here as a starting point. I would guess you might 
find some direction in the Scorer class, but I haven't gone through this in 
detail.

Conceptually a sliding weight based on proximity sounds correct...

-- jeff


On Sep 18, 2005, at 3:39 PM, James Huang wrote:
> > So the question is, is there a way to overriding score
> > calculation at runtime? In the lucene/search package,
> > I see interfaces like Scorer, Weight and methods like
> > Query.createWeight(). This looks promising.
> 
> There are several ways to adjust scoring, but I really think your
> best bet is to create a custom Query subclass (and therefore the
> Weight stuff underneath) to accommodate your needs.
>

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