lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Mallabone <...@grantadesign.com>
Subject Re: QueryParser
Date Wed, 20 Nov 2002 09:35:31 GMT
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/lucene-dev@jakarta.apache.org/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:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message