lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENENET-97) HitIterator does not correctly implement System.Collections.IEnumerator
Date Wed, 29 Aug 2007 23:26:31 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523730
] 

Digy commented on LUCENENET-97:
-------------------------------

Hi Jon,

First, Yes, you right that the logic of HitIterator is not "smart', but it is used mostly
internally and if you know what to do than there will be no problem(It can be thought as a
coding style).

Second, HitIterator encapsulates the Hits class which returns the result list  in chunks(Not
at once). So foreach loop doesn't  seem to be a suitable solution. Of Course with some coding
tricks that problem can be overridden but, there are a lot of codes that sould be converted
to C# style.

I think, the problems related with java2c# porting can not be avoided unless Lucene.Net gets
mature enough and breaks the links with java.

DIGY

> HitIterator does not correctly implement System.Collections.IEnumerator
> -----------------------------------------------------------------------
>
>                 Key: LUCENENET-97
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-97
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: .NET
>            Reporter: Neal Granroth
>
> method MoveNext() is supposed to increment the position within the list; it does not.
> method Current() is supposed to return the object at the current position, but not change
the position within the list.
> It incorrectly moves to the next position.

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