You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Ian Vink (JIRA)" <ji...@apache.org> on 2009/02/20 17:02:02 UTC

[jira] Closed: (LUCENENET-171) FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall

     [ https://issues.apache.org/jira/browse/LUCENENET-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Vink closed LUCENENET-171.
------------------------------

    Resolution: Invalid

My Bad. Not a bug

> 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.