lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r419407 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs
Date Thu, 06 Jul 2006 01:46:44 GMT
Author: aroush
Date: Wed Jul  5 18:46:44 2006
New Revision: 419407

URL: http://svn.apache.org/viewvc?rev=419407&view=rev
Log: (empty)

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/MultiPhraseQuery.cs?rev=419407&r1=419406&r2=419407&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs Wed Jul  5 18:46:44
2006
@@ -297,10 +297,17 @@
 				buffer.Append(":");
 			}
 			
+            bool appendSpace = false;
+
 			buffer.Append("\"");
 			System.Collections.IEnumerator i = termArrays.GetEnumerator();
 			while (i.MoveNext())
 			{
+                if (appendSpace == true)
+                    buffer.Append(" ");
+                else
+                    appendSpace = true;
+
 				Term[] terms = (Term[]) i.Current;
 				if (terms.Length > 1)
 				{
@@ -317,8 +324,6 @@
 				{
 					buffer.Append(terms[0].Text());
 				}
-				if (i.MoveNext())
-					buffer.Append(" ");
 			}
 			buffer.Append("\"");
 			



Mime
View raw message