lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AHMET ARSLAN <iori...@yahoo.com>
Subject Re: Payloads
Date Sat, 19 Dec 2009 16:40:39 GMT
> Hi,
> 
> I need to add a query operator '!' such that when it
> precedes a word or a
> phrase in the query, that term will contribute twice its
> weight if it is
> positioned in an even offset of the document. The position
> of a phrase is
> determined by the offset of its first word. 
> 
> I guess it involves payloads...
> 
> Elias.

'!' is already a query operator. It is equivalent of NOT. So you cannot use it. Why not use
carat operator?  Like singleterm^2 "some phrase"^2

[Boosting a Term] http://lucene.apache.org/java/3_0_0/queryparsersyntax.html



      

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