lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: PayloadNearQuery
Date Mon, 21 Dec 2009 19:44:43 GMT
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: uwe@thetaphi.de

> -----Original Message-----
> From: Elias Khsheibun [mailto:elias3@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org



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


Mime
View raw message