Wouldn't boosting the term AUTHOR:Manning with a boost factor of 0 do the
trick ?
Naama
On Sat, Jul 31, 2010 at 11:04 AM, Philippe wrote:
> Hi,
>
> I want to rank my results only on parts of my query. E.g my query is
> "TITLE:Lucene AND AUTHOR:Manning". After this query standard lucene ranking
t; From: Lance Norskog [mailto:goks...@gmail.com]
>> Sent: Saturday, July 31, 2010 10:50 PM
>> To: java-user@lucene.apache.org
>> Subject: Re: Rank results only on some fields
>>
>> Can't this use case be done with a function query?
>>
>> On Sat, Jul 31, 2010 at 1:5
essage-
> From: Lance Norskog [mailto:goks...@gmail.com]
> Sent: Saturday, July 31, 2010 10:50 PM
> To: java-user@lucene.apache.org
> Subject: Re: Rank results only on some fields
>
> Can't this use case be done with a function query?
>
> On Sat, Jul 31, 2010 at 1:59
iginal Message-
>> From: Uwe Schindler [mailto:u...@thetaphi.de]
>> Sent: Saturday, July 31, 2010 10:19 AM
>> To: java-user@lucene.apache.org
>> Subject: RE: Rank results only on some fields
>>
>> You can construct the query using a customized query
www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Uwe Schindler [mailto:u...@thetaphi.de]
> Sent: Saturday, July 31, 2010 10:19 AM
> To: java-user@lucene.apache.org
> Subject: RE: Rank results only on some fields
>
> You can construct the query using
You can construct the query using a customized query parser that wraps all
queries not with the suggested field name using a "new
ConstantScoreQuery(new QueryWrapperFilter(originalCreatedQuery))". Override
newFieldQuery() to do that and pass the super call to this ctor chain.
Uwe
-
Uwe Schind