Problem with sorted results.

2008-12-25 Thread vikas bucha
Hi, Merry Christmas and a Happy New Year to you all. I have an index with few fields. Title, Description, Author etc. For a search query "business development", the equivalent lucene query I build is: *(TITLE: business^9.00 OR AUTHOR: business^3.00 OR DESCRIPTION:business^1.00) AND (TITLE: devel

Re: Problem with sorted results.

2008-12-25 Thread prabin meitei
try to construct a query like : BooleanQuery mainquery = new BooleanQuery(); BooleanQuery query1 = new BooleanQuery(); BooleanQuery query2 = new BooleanQuery(); BooleanQuery query3 = new BooleanQuery(); queryParser = new QueryParser("title", new StandardAnalyzer()); query1 = queryParser.parse(

Re: Problem with sorted results.

2008-12-26 Thread Erick Erickson
Several points: 1> Prabin's suggestion is, I think, equivalent to something like: title:(business AND author)^9.0 OR author:(business AND author)^3.0 OR description:(business AND author)^1.0. Either way may give you results more in line with what you expect. (note, the syntax here is suspect, but

Re: Re: Problem with sorted results.

2008-12-26 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Re: Re: Problem with sorted results.

2008-12-26 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org