lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Vink (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-171) FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall
Date Thu, 19 Feb 2009 18:24:02 GMT
FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall
-----------------------------------------------------------------------

                 Key: LUCENENET-171
                 URL: https://issues.apache.org/jira/browse/LUCENENET-171
             Project: Lucene.Net
          Issue Type: Bug
         Environment: Windows XP, Visual Studio 2008
            Reporter: Ian Vink


Analyzer: SnowBall / English
Version 2.3.1

When a Query is made using an AND clause, the charsRead as below comes out 0 and so throws"read
past eof"

the input.Read returns 0 when there is no more chars read so I would have thought that the
condition 	if (charsRead <= 0) should be 	if (charsRead < 0) perhaps?

I will try to get a sub project to demo the error, but it's on a massive lucene database
 
			try
			{
				charsRead = input.Read(buffer, newPosition, buffer.Length - newPosition);
			}
			catch
			{
			}

 
			if (charsRead <= 0)
				throw new System.IO.IOException("read past eof");
			else
				bufferLength += charsRead;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message