lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENENET-376) Ver.2.9.2 SpanOrQuery.ToString() bug
Date Sat, 15 Jan 2011 21:54:45 GMT

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

Digy resolved LUCENENET-376.
----------------------------

    Resolution: Fixed
      Assignee: Digy

Patch applied to 2.9.2 and trunk

DIGY

> Ver.2.9.2 SpanOrQuery.ToString() bug
> ------------------------------------
>
>                 Key: LUCENENET-376
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-376
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Andrei Iliev
>            Assignee: Digy
>         Attachments: SpanOrQuery.patch
>
>
> Bad conversion from java code.
> ====================
> 			System.Collections.IEnumerator i = clauses.GetEnumerator();
> 			while (i.MoveNext())
> 			{
> 				SpanQuery clause = (SpanQuery) i.Current;
> 				buffer.Append(clause.ToString(field));
> 				if (i.MoveNext())
> 				{
> 					buffer.Append(", ");
> 				}
> 			}
> ====================
> Shoud be changed to something like:
> ====================
>                         int j = 0;
> 			while (i.MoveNext())
> 			{
>                                  j++;
> 				SpanQuery clause = (SpanQuery) i.Current;
> 				buffer.Append(clause.ToString(field));
> 				if (j<clauses.Count)
> 				{
> 					buffer.Append(", ");
> 				}
> 			}
> ====================

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