lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r800949 [3/3] - in /incubator/lucene.net/trunk/C#/src/Lucene.Net: Lucene.Net.xml Search/FieldCache.cs Search/FieldSortedHitQueue.cs Search/Function/OrdFieldSource.cs Search/Function/ReverseOrdFieldSource.cs
Date Tue, 04 Aug 2009 20:28:11 GMT
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldCache.cs?rev=800949&r1=800948&r2=800949&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs Tue Aug  4 20:28:11
2009
@@ -30,16 +30,16 @@
 	public class StringIndex
 	{
 		/// <summary>All the term values, in natural order. </summary>
-		public System.String[] lookup;
+		public System.String[] Lookup;
 		
 		/// <summary>For each document, an index into the lookup array. </summary>
-		public int[] order;
+		public int[] Order;
 		
 		/// <summary>Creates one of these objects </summary>
 		public StringIndex(int[] values, System.String[] lookup)
 		{
-			this.order = values;
-			this.lookup = lookup;
+			this.Order = values;
+			this.Lookup = lookup;
 		}
 	}
 	public struct FieldCache_Fields{

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldSortedHitQueue.cs?rev=800949&r1=800948&r2=800949&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs Tue Aug  4
20:28:11 2009
@@ -242,8 +242,8 @@
 			
 			public int Compare(ScoreDoc i, ScoreDoc j)
 			{
-				int fi = index.order[i.doc];
-				int fj = index.order[j.doc];
+				int fi = index.Order[i.doc];
+				int fj = index.Order[j.doc];
 				if (fi < fj)
 					return - 1;
 				if (fi > fj)
@@ -253,7 +253,7 @@
 			
 			public virtual System.IComparable SortValue(ScoreDoc i)
 			{
-				return index.lookup[index.order[i.doc]];
+				return index.Lookup[index.Order[i.doc]];
 			}
 			
 			public virtual int SortType()

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Function/OrdFieldSource.cs?rev=800949&r1=800948&r2=800949&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs Tue Aug
 4 20:28:11 2009
@@ -110,7 +110,7 @@
 		/*(non-Javadoc) @see Lucene.Net.Search.Function.ValueSource#getValues(Lucene.Net.Index.IndexReader)
*/
 		public override DocValues GetValues(IndexReader reader)
 		{
-			int[] arr = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetStringIndex(reader, field).order;
+			int[] arr = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetStringIndex(reader, field).Order;
 			return new AnonymousClassDocValues(arr, this);
 		}
 		

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs?rev=800949&r1=800948&r2=800949&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs
(original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs
Tue Aug  4 20:28:11 2009
@@ -119,8 +119,8 @@
 		{
 			Lucene.Net.Search.StringIndex sindex = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetStringIndex(reader,
field);
 			
-			int[] arr = sindex.order;
-			int end = sindex.lookup.Length;
+			int[] arr = sindex.Order;
+			int end = sindex.Lookup.Length;
 			
 			return new AnonymousClassDocValues(end, arr, this);
 		}



Mime
View raw message