1) did you look at the Explain output to seee what it's doing? 2) did you look atthe query.toString() of your Query object?
I suspect your query is being parsed as "Jess in the Author field, and Hopkins in the defaultSearch field" - so the order you cited makes perfect sense (assuming what you listed is everything in your index) : Date: Tue, 30 Jan 2007 14:58:23 -0500 : From: Nott <[EMAIL PROTECTED]> : To: java-user@lucene.apache.org : Cc: [EMAIL PROTECTED] : Subject: Re: Score : : Hi : Thanks for the response : To explain more clear say I search on the Author field . : : Consider by data resides as follows : : Author title : Jess Hopkins ABC : Jess howard CCC : James Hopkins ZZZ : Jess Hopkins RRR : : I want all documents that were created by say Jess Hopkins : : My query goes like this : author: Jess Hopkins : : I want the results to be returned for me in the following order : Author title : Jess Hopkins ABC : Jess Hopkins RRR : Jess howard CCC : James Hopkins ZZZ : : But my result is in a different order : Author title : Jess howard CCC : Jess Hopkins RRR : James Hopkins ZZZ : Jess Hopkins ABC : : It is not ordering based on the full text i give. It is taking each word and : ordering accordingly ? Is that some thing additional I should say to : retrieve the most matching String first and the rest later ? : : : Bharath : : On 1/30/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : > : > : > : I make a BooleanQuery with the input of the user and include in the : > query : > : title:keywordofuser headlines:keywordofuser content:keywordofuser : > : I tried to Boost field title, then if keyword appear in the title, score : > grows like I want to, but if keyword occurs in content or headlines score : > decrease more than before ... : > : I would like to have a score independent for each query in the : > BooleanQuery, sounds basic but I just can't achieve this. : > : Is this also possible to change ? : > : > it's really not clear to me what you are asking ... what do you mean : > the score is decreased if the keyword appears in the content? ... how can : > the score be independent of the sub queries? -- the subqueries are what : > determine the score, there is nothing else. : > : > Have you looked at the constructor for BooleanQuery and tried passing : > "true" to disable the Coord factor? ... that eliminates the pnalty : > documents get for only matching some of the clauses of a BooleanQuery -- : > which may be what you are describing (i'm really not sure) : > : > : > : > -Hoss : > : > : > --------------------------------------------------------------------- : > To unsubscribe, e-mail: [EMAIL PROTECTED] : > For additional commands, e-mail: [EMAIL PROTECTED] : > : > : : : -- : ~B : -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]