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] Closed: (LUCENENET-171) FastCharStream.cs => charsRead is 0 often in AND queries using SnowBall
Date Fri, 20 Feb 2009 16:02:02 GMT

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


Mime
View raw message