Re: Rank results only on some fields

2010-08-01 Thread Naama Kraus
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

Re: Rank results only on some fields

2010-07-31 Thread Lance Norskog
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

RE: Rank results only on some fields

2010-07-31 Thread Uwe Schindler
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

Re: Rank results only on some fields

2010-07-31 Thread Lance Norskog
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

RE: Rank results only on some fields

2010-07-31 Thread Uwe Schindler
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

RE: Rank results only on some fields

2010-07-31 Thread Uwe Schindler
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