You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Peter Keegan <pe...@gmail.com> on 2010/02/15 16:29:53 UTC

PayloadNearSpanScorer explain method

The 'explain' method in PayloadNearSpanScorer assumes the
AveragePayloadFunction was used. I don't see an easy way to override this
because 'payloadsSeen' and 'payloadScore' are private/protected. It seems
like the 'PayloadFunction' interface should have an 'explain' method that
the Scorer could call. Any thoughts?

Peter

Re: PayloadNearSpanScorer explain method

Posted by Peter Keegan <pe...@gmail.com>.
Patch is in JIRA: LUCENE-2272

On Wed, Feb 17, 2010 at 8:40 PM, Peter Keegan <pe...@gmail.com>wrote:

> Yes, I will provide a patch. Our new proxy server has broken my access to
> the svn repository, though :-(
>
>
> On Tue, Feb 16, 2010 at 1:12 PM, Grant Ingersoll <gs...@apache.org>wrote:
>
>> That sounds reasonable.  Patch?
>>
>> On Feb 15, 2010, at 10:29 AM, Peter Keegan wrote:
>>
>> > The 'explain' method in PayloadNearSpanScorer assumes the
>> > AveragePayloadFunction was used. I don't see an easy way to override
>> this
>> > because 'payloadsSeen' and 'payloadScore' are private/protected. It
>> seems
>> > like the 'PayloadFunction' interface should have an 'explain' method
>> that
>> > the Scorer could call. Any thoughts?
>> >
>> > Peter
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>

Re: PayloadNearSpanScorer explain method

Posted by Peter Keegan <pe...@gmail.com>.
Yes, I will provide a patch. Our new proxy server has broken my access to
the svn repository, though :-(

On Tue, Feb 16, 2010 at 1:12 PM, Grant Ingersoll <gs...@apache.org>wrote:

> That sounds reasonable.  Patch?
>
> On Feb 15, 2010, at 10:29 AM, Peter Keegan wrote:
>
> > The 'explain' method in PayloadNearSpanScorer assumes the
> > AveragePayloadFunction was used. I don't see an easy way to override this
> > because 'payloadsSeen' and 'payloadScore' are private/protected. It seems
> > like the 'PayloadFunction' interface should have an 'explain' method that
> > the Scorer could call. Any thoughts?
> >
> > Peter
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: PayloadNearSpanScorer explain method

Posted by Grant Ingersoll <gs...@apache.org>.
That sounds reasonable.  Patch?

On Feb 15, 2010, at 10:29 AM, Peter Keegan wrote:

> The 'explain' method in PayloadNearSpanScorer assumes the
> AveragePayloadFunction was used. I don't see an easy way to override this
> because 'payloadsSeen' and 'payloadScore' are private/protected. It seems
> like the 'PayloadFunction' interface should have an 'explain' method that
> the Scorer could call. Any thoughts?
> 
> Peter



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