lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccurr...@apache.org
Subject svn commit: r1372572 - /incubator/lucene.net/branches/3.0.3/src/demo/IndexHtml/IndexHtml.cs
Date Mon, 13 Aug 2012 20:03:54 GMT
Author: ccurrens
Date: Mon Aug 13 20:03:54 2012
New Revision: 1372572

URL: http://svn.apache.org/viewvc?rev=1372572&view=rev
Log:
Using Term property instead of Term() in demo/IndexHtml

Modified:
    incubator/lucene.net/branches/3.0.3/src/demo/IndexHtml/IndexHtml.cs

Modified: incubator/lucene.net/branches/3.0.3/src/demo/IndexHtml/IndexHtml.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/3.0.3/src/demo/IndexHtml/IndexHtml.cs?rev=1372572&r1=1372571&r2=1372572&view=diff
==============================================================================
--- incubator/lucene.net/branches/3.0.3/src/demo/IndexHtml/IndexHtml.cs (original)
+++ incubator/lucene.net/branches/3.0.3/src/demo/IndexHtml/IndexHtml.cs Mon Aug 13 20:03:54
2012
@@ -133,10 +133,10 @@ namespace Lucene.Net.Demo
 				if (deleting)
 				{
 					// delete rest of stale docs
-					while (uidIter.Term() != null && (System.Object) uidIter.Term().Field == (System.Object)
"uid")
+					while (uidIter.Term != null && (System.Object) uidIter.Term.Field == (System.Object)
"uid")
 					{
-						System.Console.Out.WriteLine("deleting " + HTMLDocument.Uid2url(uidIter.Term().Text));
-						reader.DeleteDocuments(uidIter.Term());
+						System.Console.Out.WriteLine("deleting " + HTMLDocument.Uid2url(uidIter.Term.Text));
+						reader.DeleteDocuments(uidIter.Term);
 						uidIter.Next();
 					}
 					deleting = false;
@@ -169,17 +169,17 @@ namespace Lucene.Net.Demo
 				{
 					System.String uid = HTMLDocument.Uid(file); // construct uid for doc
 					
-					while (uidIter.Term() != null && (System.Object) uidIter.Term().Field == (System.Object)
"uid" && String.CompareOrdinal(uidIter.Term().Text, uid) < 0)
+					while (uidIter.Term != null && (System.Object) uidIter.Term.Field == (System.Object)
"uid" && String.CompareOrdinal(uidIter.Term.Text, uid) < 0)
 					{
 						if (deleting)
 						{
 							// delete stale docs
-							System.Console.Out.WriteLine("deleting " + HTMLDocument.Uid2url(uidIter.Term().Text));
-							reader.DeleteDocuments(uidIter.Term());
+							System.Console.Out.WriteLine("deleting " + HTMLDocument.Uid2url(uidIter.Term.Text));
+							reader.DeleteDocuments(uidIter.Term);
 						}
 						uidIter.Next();
 					}
-					if (uidIter.Term() != null && (System.Object) uidIter.Term().Field == (System.Object)
"uid" && String.CompareOrdinal(uidIter.Term().Text, uid) == 0)
+					if (uidIter.Term != null && (System.Object) uidIter.Term.Field == (System.Object)
"uid" && String.CompareOrdinal(uidIter.Term.Text, uid) == 0)
 					{
 						uidIter.Next(); // keep matching docs
 					}



Mime
View raw message