lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: [jira] Commented: (LUCENE-834) Payload Queries
Date Wed, 18 Apr 2007 15:21:32 GMT
OK, I need to take a step back, Michael, b/c I thought I understood  
your original comment, but I went to make the change and am no longer  

   By "first term position" are you referring to multiple terms per  
position or do you mean the same term in different positions?  When I  
implemented the BTQ (BoostingTermQuery) I modeled it pretty much off  
of the SpanTermQuery (STQ) which I felt had very similar  
functionality, other than having to load the payload.

Doesn't the next() method on the BoostingSpanScorer take care of  
moving through the various positions that the term appears at,  
whereupon it loads the payload at the position?  Could you write up a  
patch to the test to demonstrate?


On Apr 17, 2007, at 3:32 PM, Michael Busch (JIRA) wrote:

>     [ 
> page=com.atlassian.jira.plugin.system.issuetabpanels:comment- 
> tabpanel#action_12489519 ]
> Michael Busch commented on LUCENE-834:
> --------------------------------------
> Hi Grant,
> cool that you started implementing queries that use of payloads! I  
> have a question about this one: BoostingTermQuery only takes the  
> payload of the first term position into account for scoring. Could  
> you explain why you implemented it this way? Shouldn't we rather  
> compute the average of the payload values of all positions?
>> Payload Queries
>> ---------------
>>                 Key: LUCENE-834
>>                 URL:
>>             Project: Lucene - Java
>>          Issue Type: New Feature
>>          Components: Search
>>            Reporter: Grant Ingersoll
>>         Assigned To: Grant Ingersoll
>>            Priority: Minor
>>         Attachments: boosting.term.query.patch
>> Now that payloads have been implemented, it will be good to make  
>> them searchable via one or more Query mechanisms.  See http:// 
>> for some background  
>> information and  
>> for the issue that started it all.
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Grant Ingersoll
Center for Natural Language Processing

Read the Lucene Java FAQ at 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message