What is the problem you are trying to solve?  Is this something to do with 
weighting the head of a noun phrase?  My guess is you will have to write your 
own PayloadQuery.

-Grant

On Dec 21, 2009, at 4:47 PM, Elias Khsheibun wrote:

> You are right, that is the behavior that I'm getting, any other ideas then ?
> 
> -----Original Message-----
> From: Uwe Schindler [mailto:u...@thetaphi.de] 
> Sent: Monday, December 21, 2009 11:18 PM
> To: java-user@lucene.apache.org
> Subject: RE: PayloadNearQuery
> 
> Then I have no other idea how to solve this. It seems that Elias has already
> noticed that behaviour.
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: u...@thetaphi.de
> 
>> -----Original Message-----
>> From: Grant Ingersoll [mailto:gsi...@gmail.com]
>> Sent: Monday, December 21, 2009 10:05 PM
>> To: java-user@lucene.apache.org
>> Subject: Re: PayloadNearQuery
>> 
>> I don't think that will work, as I don't believe that the SpanQueries 
>> delegate scoring to the subclauses.  Instead, they just rely on 
>> iterating the spans.
>> 
>> -Grant
>> 
>> On Dec 21, 2009, at 2:44 PM, Uwe Schindler wrote:
>> 
>>> It is as you describe:
>>> 
>>> PayloadTermQuery is a subclass of SpanQuery. So create a 
>>> SpanNearQuery
>> with
>>> slop=0 and order=true and add first the PayloadNearQuery, then the 
>>> rest
>> of
>>> the phrase terms as SpanTermQuery in order of appearance.
>>> 
>>> Uwe
>>> 
>>> -----
>>> Uwe Schindler
>>> H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de
>>> eMail: u...@thetaphi.de
>>> 
>>>> -----Original Message-----
>>>> From: Elias Khsheibun [mailto:eli...@gmail.com]
>>>> Sent: Monday, December 21, 2009 6:51 PM
>>>> To: java-user@lucene.apache.org
>>>> Subject: PayloadNearQuery
>>>> 
>>>> I want to have the effect of handling the first term of a phrase 
>>>> query
>> as
>>>> a
>>>> PayloadTermQuery and for the others just normal handling ... how 
>>>> can I
>> do
>>>> that ?
>>>> 
>>>> 
>>>> 
>>>> -------------------------------------------------------------------
>>>> -- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>>>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>> 
>>> 
>>> 
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
> 


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

Reply via email to