On Tue, 2002-11-19 at 23:07, stephane vaucher wrote: > I've tested the following. I don't know if I'm hitting expected > behaviour, but it seems suspicious:
Hi, You might like to see this thread to lucene-dev from a couple of months ago: http://www.mail-archive.com/[email protected]/msg01843.html I provided a test patch and what I thought was a fix, but as Doug explains in his replies, setBoost() isn't currently implemented for boolean queries. Regards, -- Lee Mallabone. > < > < public void testPhraseBoost() throws Exception{ > < assertQueryEquals("(a AND b) OR c", null, "(+a +b) c"); > < assertQueryEquals("(a AND b)^2 c", null, "(+a +b)^2.0 c"); > < } > > --> junit result > > There was 1 failure: > 1) > >testPhraseBoost(org.apache.lucene.queryParser.TestQueryParser)junit.framework.AssertionFailedError: > > Query /(a AND b)^2 c/ yielded /+a +b/, expecting /(+a +b)^2.0 c/ > at > org.apache.lucene.queryParser.TestQueryParser.assertQueryEquals(Unknown -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
