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.
>

Reply via email to