lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenel...@danielnaber.de>
Subject Re: QueryParser with position increment > 1
Date Tue, 08 Nov 2005 23:09:47 GMT
On Dienstag 08 November 2005 08:03, Ahmed El-dawy wrote:

> The error is at lines 384, 385
>       if (t.getPositionIncrement() == 1)
>         positionCount++;
> Must be
>       if (t.getPositionIncrement() != 0)
>         positionCount+=t.getPositionIcrement();

Thanks, I have committed this fix to SVN and extended the test cases in 
TestMultiAnalyzer.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message