lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [13/46] lucenenet git commit: Facet: Normalized code formatting, license headers, and usings.
Date Tue, 04 Oct 2016 20:01:43 GMT
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/PrintTaxonomyStats.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/PrintTaxonomyStats.cs b/src/Lucene.Net.Facet/Taxonomy/PrintTaxonomyStats.cs
index a4b44aa..e4b723b 100644
--- a/src/Lucene.Net.Facet/Taxonomy/PrintTaxonomyStats.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/PrintTaxonomyStats.cs
@@ -3,7 +3,6 @@ using System.IO;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,10 +20,9 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
     using ChildrenIterator = Lucene.Net.Facet.Taxonomy.TaxonomyReader.ChildrenIterator;
-    using DirectoryTaxonomyReader = Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader;
     using Directory = Lucene.Net.Store.Directory;
+    using DirectoryTaxonomyReader = Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader;
     using FSDirectory = Lucene.Net.Store.FSDirectory;
 
     /// <summary>
@@ -33,7 +31,6 @@ namespace Lucene.Net.Facet.Taxonomy
     // java -cp ../build/core/classes/java:../build/facet/classes/java org.apache.lucene.facet.util.PrintTaxonomyStats
-printTree /s2/scratch/indices/wikibig.trunk.noparents.facets.Lucene41.nd1M/facets
     public class PrintTaxonomyStats
     {
-
         /// <summary>
         /// Sole constructor. </summary>
         public PrintTaxonomyStats()
@@ -117,5 +114,4 @@ namespace Lucene.Net.Facet.Taxonomy
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs b/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
index 7abc055..6686188 100644
--- a/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
@@ -1,9 +1,8 @@
-using System.Threading;
-using Lucene.Net.Search;
+using Lucene.Net.Search;
+using System;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,18 +20,16 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
+    using Directory = Lucene.Net.Store.Directory;
+    using DirectoryReader = Lucene.Net.Index.DirectoryReader;
     using DirectoryTaxonomyReader = Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader;
     using DirectoryTaxonomyWriter = Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter;
-    using DirectoryReader = Lucene.Net.Index.DirectoryReader;
     using IndexReader = Lucene.Net.Index.IndexReader;
-    using IndexWriter = Lucene.Net.Index.IndexWriter;
     using IndexSearcher = Lucene.Net.Search.IndexSearcher;
-    using Lucene.Net.Search;
+    using IndexWriter = Lucene.Net.Index.IndexWriter;
+    using IOUtils = Lucene.Net.Util.IOUtils;
     using SearcherFactory = Lucene.Net.Search.SearcherFactory;
     using SearcherManager = Lucene.Net.Search.SearcherManager;
-    using Directory = Lucene.Net.Store.Directory;
-    using IOUtils = Lucene.Net.Util.IOUtils;
-    using System;
 
     /// <summary>
     /// Manages near-real-time reopen of both an IndexSearcher
@@ -45,7 +42,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class SearcherTaxonomyManager : ReferenceManager<SearcherTaxonomyManager.SearcherAndTaxonomy>
     {
-
         /// <summary>
         /// Holds a matched pair of <seealso cref="IndexSearcher"/> and
         ///  <seealso cref="TaxonomyReader"/> 
@@ -77,7 +73,8 @@ namespace Lucene.Net.Facet.Taxonomy
         /// Creates near-real-time searcher and taxonomy reader
         ///  from the corresponding writers. 
         /// </summary>
-        public SearcherTaxonomyManager(IndexWriter writer, bool applyAllDeletes, SearcherFactory
searcherFactory, DirectoryTaxonomyWriter taxoWriter)
+        public SearcherTaxonomyManager(IndexWriter writer, bool applyAllDeletes, 
+            SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter)
         {
             if (searcherFactory == null)
             {
@@ -86,7 +83,8 @@ namespace Lucene.Net.Facet.Taxonomy
             this.searcherFactory = searcherFactory;
             this.taxoWriter = taxoWriter;
             var taxoReader = new DirectoryTaxonomyReader(taxoWriter);
-            Current = new SearcherAndTaxonomy(SearcherManager.GetSearcher(searcherFactory,
DirectoryReader.Open(writer, applyAllDeletes)), taxoReader);
+            Current = new SearcherAndTaxonomy(SearcherManager.GetSearcher(
+                searcherFactory, DirectoryReader.Open(writer, applyAllDeletes)), taxoReader);
             this.taxoEpoch = taxoWriter.TaxonomyEpoch;
         }
 
@@ -107,7 +105,8 @@ namespace Lucene.Net.Facet.Taxonomy
             }
             this.searcherFactory = searcherFactory;
             var taxoReader = new DirectoryTaxonomyReader(taxoDir);
-            Current = new SearcherAndTaxonomy(SearcherManager.GetSearcher(searcherFactory,
DirectoryReader.Open(indexDir)), taxoReader);
+            Current = new SearcherAndTaxonomy(SearcherManager.GetSearcher(
+                searcherFactory, DirectoryReader.Open(indexDir)), taxoReader);
             this.taxoWriter = null;
             taxoEpoch = -1;
         }
@@ -176,5 +175,4 @@ namespace Lucene.Net.Facet.Taxonomy
             return reference.searcher.IndexReader.RefCount;
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetCounts.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetCounts.cs
index 49be839..af008c7 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetCounts.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetCounts.cs
@@ -1,9 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,11 +19,10 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
-    using MatchingDocs = FacetsCollector.MatchingDocs;
     using BinaryDocValues = Lucene.Net.Index.BinaryDocValues;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using IntsRef = Lucene.Net.Util.IntsRef;
+    using MatchingDocs = FacetsCollector.MatchingDocs;
 
     /// <summary>
     /// Reads from any <seealso cref="OrdinalsReader"/>; use {@link
@@ -73,5 +70,4 @@ namespace Lucene.Net.Facet.Taxonomy
             Rollup();
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumFloatAssociations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumFloatAssociations.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumFloatAssociations.cs
index 7d5188e..821c942 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumFloatAssociations.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumFloatAssociations.cs
@@ -1,11 +1,8 @@
-using System.Collections.Generic;
-using Lucene.Net.Facet;
-using Lucene.Net.Search;
-using Lucene.Net.Support;
+using Lucene.Net.Support;
+using System.Collections.Generic;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -23,11 +20,10 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
-    using MatchingDocs = FacetsCollector.MatchingDocs;
     using BinaryDocValues = Lucene.Net.Index.BinaryDocValues;
-    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using BytesRef = Lucene.Net.Util.BytesRef;
+    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using MatchingDocs = FacetsCollector.MatchingDocs;
 
     /// <summary>
     /// Aggregates sum of int values previously indexed with
@@ -38,7 +34,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class TaxonomyFacetSumFloatAssociations : FloatTaxonomyFacets
     {
-
         /// <summary>
         /// Create {@code TaxonomyFacetSumFloatAssociations} against
         ///  the default index field. 
@@ -84,9 +79,11 @@ namespace Lucene.Net.Facet.Taxonomy
                     int offset = bytesRef.Offset;
                     while (offset < end)
                     {
-                        int ord = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset
+ 3] & 0xFF);
+                        int ord = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | 
+                            ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset +
3] & 0xFF);
                         offset += 4;
-                        int value = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset
+ 3] & 0xFF);
+                        int value = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | 
+                            ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset +
3] & 0xFF);
                         offset += 4;
                         values[ord] += Number.IntBitsToFloat(value);
                     }
@@ -94,5 +91,4 @@ namespace Lucene.Net.Facet.Taxonomy
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumIntAssociations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumIntAssociations.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumIntAssociations.cs
index 9942be6..8d835fb 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumIntAssociations.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumIntAssociations.cs
@@ -1,9 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,11 +19,10 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
-    using MatchingDocs = FacetsCollector.MatchingDocs;
     using BinaryDocValues = Lucene.Net.Index.BinaryDocValues;
-    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using BytesRef = Lucene.Net.Util.BytesRef;
+    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using MatchingDocs = FacetsCollector.MatchingDocs;
 
     /// <summary>
     /// Aggregates sum of int values previously indexed with
@@ -36,7 +33,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class TaxonomyFacetSumIntAssociations : IntTaxonomyFacets
     {
-
         /// <summary>
         /// Create {@code TaxonomyFacetSumIntAssociations} against
         ///  the default index field. 
@@ -82,9 +78,11 @@ namespace Lucene.Net.Facet.Taxonomy
                     int offset = bytesRef.Offset;
                     while (offset < end)
                     {
-                        int ord = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset
+ 3] & 0xFF);
+                        int ord = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | 
+                            ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset +
3] & 0xFF);
                         offset += 4;
-                        int value = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset
+ 3] & 0xFF);
+                        int value = ((bytes[offset] & 0xFF) << 24) | ((bytes[offset
+ 1] & 0xFF) << 16) | 
+                            ((bytes[offset + 2] & 0xFF) << 8) | (bytes[offset +
3] & 0xFF);
                         offset += 4;
                         values[ord] += value;
                     }
@@ -92,5 +90,4 @@ namespace Lucene.Net.Facet.Taxonomy
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
index 4d4fc76..4981f33 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
@@ -1,13 +1,10 @@
 using System;
 using System.Collections;
 using System.Collections.Generic;
-using System.IO;
 using System.Threading;
-using Lucene.Net.Facet;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -25,16 +22,15 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
-    using MatchingDocs = FacetsCollector.MatchingDocs;
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
-    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
-    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
-    using DoubleDocValues = Lucene.Net.Queries.Function.DocValues.DoubleDocValues;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using DoubleDocValues = Lucene.Net.Queries.Function.DocValues.DoubleDocValues;
+    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
+    using IntsRef = Lucene.Net.Util.IntsRef;
+    using MatchingDocs = FacetsCollector.MatchingDocs;
     using Scorer = Lucene.Net.Search.Scorer;
+    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
     using Weight = Lucene.Net.Search.Weight;
-    using IntsRef = Lucene.Net.Util.IntsRef;
 
     /// <summary>
     /// Aggregates sum of values from {@link
@@ -53,8 +49,10 @@ namespace Lucene.Net.Facet.Taxonomy
         ///  facet field {@link
         ///  FacetsConfig#DEFAULT_INDEX_FIELD_NAME}. 
         /// </summary>
-        public TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config,
FacetsCollector fc, ValueSource valueSource)
-            : this(new DocValuesOrdinalsReader(FacetsConfig.DEFAULT_INDEX_FIELD_NAME), taxoReader,
config, fc, valueSource)
+        public TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config,
+            FacetsCollector fc, ValueSource valueSource)
+            : this(new DocValuesOrdinalsReader(FacetsConfig.DEFAULT_INDEX_FIELD_NAME),
+                  taxoReader, config, fc, valueSource)
         {
         }
 
@@ -63,7 +61,8 @@ namespace Lucene.Net.Facet.Taxonomy
         ///  <seealso cref="ValueSource"/>, and pulls ordinals from the
         ///  provided <seealso cref="OrdinalsReader"/>. 
         /// </summary>
-        public TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader
taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource)
+        public TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader
taxoReader,
+            FacetsConfig config, FacetsCollector fc, ValueSource valueSource)
             : base(ordinalsReader.IndexFieldName, taxoReader, config)
         {
             this.ordinalsReader = ordinalsReader;
@@ -193,7 +192,6 @@ namespace Lucene.Net.Facet.Taxonomy
                 {
                     this.outerInstance = outerInstance;
                     this.scorer = scorer;
-
                 }
 
                 public override double DoubleVal(int document)
@@ -214,7 +212,7 @@ namespace Lucene.Net.Facet.Taxonomy
                 if (ReferenceEquals(null, o)) return false;
                 if (ReferenceEquals(this, o)) return true;
                 if (o.GetType() != this.GetType()) return false;
-                return Equals((ScoreValueSource) o);
+                return Equals((ScoreValueSource)o);
             }
 
             protected bool Equals(ScoreValueSource other)
@@ -229,19 +227,13 @@ namespace Lucene.Net.Facet.Taxonomy
 
             private static readonly int hcode = typeof(DoubleDocValuesAnonymousInnerClassHelper).GetHashCode();
 
-            
-
-
             public override string Description
             {
                 get
                 {
                     return "score()";
                 }
-
             }
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacets.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacets.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacets.cs
index 355ff6c..03baa55 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacets.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacets.cs
@@ -1,11 +1,9 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Lucene.Net.Facet;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -23,14 +21,12 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
     using DimConfig = Lucene.Net.Facet.FacetsConfig.DimConfig; // javadocs
 
     /// <summary>
     /// Base class for all taxonomy-based facets impls. </summary>
     public abstract class TaxonomyFacets : Facets
     {
-
         private static readonly IComparer<FacetResult> BY_VALUE_THEN_DIM = new ComparatorAnonymousInnerClassHelper();
 
         private class ComparatorAnonymousInnerClassHelper : IComparer<FacetResult>
@@ -132,6 +128,5 @@ namespace Lucene.Net.Facet.Taxonomy
             Array.Sort(resultArray, BY_VALUE_THEN_DIM);
             return resultArray;
         }
-
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyReader.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyReader.cs
index f5cfc12..f303abb 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyReader.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyReader.cs
@@ -1,15 +1,11 @@
-using System;
-using System.Diagnostics;
+using Lucene.Net.Support;
+using System;
 using System.Collections.Generic;
+using System.Diagnostics;
 using System.Threading;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
-
-    using AlreadyClosedException = Lucene.Net.Store.AlreadyClosedException;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -27,6 +23,8 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
+    using AlreadyClosedException = Lucene.Net.Store.AlreadyClosedException;
+
     /// <summary>
     /// TaxonomyReader is the read-only interface with which the faceted-search
     /// library uses the taxonomy during search time.
@@ -68,12 +66,10 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public abstract class TaxonomyReader
     {
-
         /// <summary>
         /// An iterator over a category's children. </summary>
         public class ChildrenIterator
         {
-
             internal readonly int[] siblings;
             internal int child;
 
@@ -96,7 +92,6 @@ namespace Lucene.Net.Facet.Taxonomy
                 }
                 return res;
             }
-
         }
 
         /// <summary>
@@ -310,8 +305,5 @@ namespace Lucene.Net.Facet.Taxonomy
             }
             return false;
         }
-
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/TaxonomyWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyWriter.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyWriter.cs
index 26a3e10..0487cbf 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyWriter.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyWriter.cs
@@ -1,13 +1,8 @@
 using System;
 using System.Collections.Generic;
-using Lucene.Net.Index;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
-
-    using TwoPhaseCommit = Lucene.Net.Index.TwoPhaseCommit;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -25,6 +20,8 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
+    using TwoPhaseCommit = Lucene.Net.Index.TwoPhaseCommit;
+
     /// <summary>
     /// TaxonomyWriter is the interface which the faceted-search library uses
     /// to dynamically build the taxonomy at indexing time.
@@ -56,7 +53,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public interface TaxonomyWriter : IDisposable, TwoPhaseCommit
     {
-
         /// <summary>
         /// addCategory() adds a category with a given path name to the taxonomy,
         /// and returns its ordinal. If the category was already present in
@@ -118,8 +114,5 @@ namespace Lucene.Net.Facet.Taxonomy
         /// </para>
         /// </summary>
         IDictionary<string, string> CommitData { set; get; }
-
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/CategoryPathUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CategoryPathUtils.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CategoryPathUtils.cs
index eb63f56..800fda0 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CategoryPathUtils.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CategoryPathUtils.cs
@@ -23,7 +23,6 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
     /// Utilities for use of <seealso cref="FacetLabel"/> by <seealso cref="CompactLabelToOrdinal"/>.
</summary>
     internal class CategoryPathUtils
     {
-
         /// <summary>
         /// Serializes the given <seealso cref="FacetLabel"/> to the <seealso cref="CharBlockArray"/>.
</summary>
         public static void Serialize(FacetLabel cp, CharBlockArray charBlockArray)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/CharBlockArray.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CharBlockArray.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CharBlockArray.cs
index c1c9825..691ed41 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CharBlockArray.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CharBlockArray.cs
@@ -1,9 +1,8 @@
-using System;
+using Lucene.Net.Support;
+using System;
 using System.Collections.Generic;
 using System.IO;
 using System.Text;
-using Lucene.Net.Store;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
@@ -33,7 +32,6 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
     [Serializable]
     public class CharBlockArray : ICharSequence
     {
-
         private const long serialVersionUID = 1L;
 
         private const int DefaultBlockSize = 32 * 1024; // 32 KB default size

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/Cl2oTaxonomyWriterCache.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/Cl2oTaxonomyWriterCache.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/Cl2oTaxonomyWriterCache.cs
index 1b8f0c3..8e6ca98 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/Cl2oTaxonomyWriterCache.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/Cl2oTaxonomyWriterCache.cs
@@ -2,9 +2,6 @@
 
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
-
-
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -117,7 +114,5 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
                 return cache == null ? 0 : cache.MemoryUsage;
             }
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/CollisionMap.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CollisionMap.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CollisionMap.cs
index c315ec5..9e8c1ad 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CollisionMap.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CollisionMap.cs
@@ -2,11 +2,8 @@
 using System.Collections;
 using System.Collections.Generic;
 
-
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
-
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -32,7 +29,6 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
     /// </summary>
     public class CollisionMap
     {
-
         private int capacity_Renamed;
         private float loadFactor;
         private int size_Renamed;
@@ -261,7 +257,7 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
                 Entry e = this.next_Renamed;
                 if (e == null)
                 {
-					throw new InvalidOperationException(this.GetType() + " cannot get next entry");;
+                    throw new InvalidOperationException(this.GetType() + " cannot get next
entry"); ;
                 }
 
                 Entry n = e.next;
@@ -305,7 +301,5 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
                 get { return Current; }
             }
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/CompactLabelToOrdinal.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CompactLabelToOrdinal.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CompactLabelToOrdinal.cs
index d0cebe2..28f93c4 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/CompactLabelToOrdinal.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/CompactLabelToOrdinal.cs
@@ -50,7 +50,6 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
     /// </summary>
     public class CompactLabelToOrdinal : LabelToOrdinal
     {
-
         /// <summary>
         /// Default maximum load factor. </summary>
         public const float DefaultLoadFactor = 0.15f;
@@ -81,7 +80,6 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
         /// Sole constructor. </summary>
         public CompactLabelToOrdinal(int initialCapacity, float loadFactor, int numHashArrays)
         {
-
             this.hashArrays = new HashArray[numHashArrays];
 
             this.capacity = DetermineCapacity((int)Math.Pow(2, numHashArrays), initialCapacity);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/LabelToOrdinal.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/LabelToOrdinal.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/LabelToOrdinal.cs
index 495aa9b..600ecbb 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/LabelToOrdinal.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/LabelToOrdinal.cs
@@ -1,7 +1,6 @@
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
-
-	/*
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,66 +17,63 @@
 	 * limitations under the License.
 	 */
 
-	/// <summary>
-	/// Abstract class for storing Label->Ordinal mappings in a taxonomy. 
-	/// 
-	/// @lucene.experimental
-	/// </summary>
-	public abstract class LabelToOrdinal
-	{
-
-	  /// <summary>
-	  /// How many ordinals we've seen. </summary>
-	  protected internal int counter;
-
-	  /// <summary>
-	  /// Returned by <seealso cref="#getOrdinal"/> when the label isn't
-	  ///  recognized. 
-	  /// </summary>
-	  public const int INVALID_ORDINAL = -2;
-
-	  /// <summary>
-	  /// Default constructor. </summary>
-	  public LabelToOrdinal()
-	  {
-	  }
+    /// <summary>
+    /// Abstract class for storing Label->Ordinal mappings in a taxonomy. 
+    /// 
+    /// @lucene.experimental
+    /// </summary>
+    public abstract class LabelToOrdinal
+    {
+        /// <summary>
+        /// How many ordinals we've seen. </summary>
+        protected internal int counter;
 
-	  /// <summary>
-	  /// return the maximal Ordinal assigned so far
-	  /// </summary>
-	  public virtual int MaxOrdinal
-	  {
-		  get
-		  {
-			return this.counter;
-		  }
-	  }
+        /// <summary>
+        /// Returned by <seealso cref="#getOrdinal"/> when the label isn't
+        ///  recognized. 
+        /// </summary>
+        public const int INVALID_ORDINAL = -2;
 
-	  /// <summary>
-	  /// Returns the next unassigned ordinal. The default behavior of this method
-	  /// is to simply increment a counter.
-	  /// </summary>
-	  public virtual int NextOrdinal
-	  {
-		  get
-		  {
-			return this.counter++;
-		  }
-	  }
+        /// <summary>
+        /// Default constructor. </summary>
+        public LabelToOrdinal()
+        {
+        }
 
-	  /// <summary>
-	  /// Adds a new label if its not yet in the table.
-	  /// Throws an <seealso cref="IllegalArgumentException"/> if the same label with
-	  /// a different ordinal was previoulsy added to this table.
-	  /// </summary>
-	  public abstract void AddLabel(FacetLabel label, int ordinal);
+        /// <summary>
+        /// return the maximal Ordinal assigned so far
+        /// </summary>
+        public virtual int MaxOrdinal
+        {
+            get
+            {
+                return this.counter;
+            }
+        }
 
-	  /// <summary>
-	  /// Returns the ordinal assigned to the given label, 
-	  /// or <seealso cref="#INVALID_ORDINAL"/> if the label cannot be found in this table.
-	  /// </summary>
-	  public abstract int GetOrdinal(FacetLabel label);
+        /// <summary>
+        /// Returns the next unassigned ordinal. The default behavior of this method
+        /// is to simply increment a counter.
+        /// </summary>
+        public virtual int NextOrdinal
+        {
+            get
+            {
+                return this.counter++;
+            }
+        }
 
-	}
+        /// <summary>
+        /// Adds a new label if its not yet in the table.
+        /// Throws an <seealso cref="IllegalArgumentException"/> if the same label
with
+        /// a different ordinal was previoulsy added to this table.
+        /// </summary>
+        public abstract void AddLabel(FacetLabel label, int ordinal);
 
+        /// <summary>
+        /// Returns the ordinal assigned to the given label, 
+        /// or <seealso cref="#INVALID_ORDINAL"/> if the label cannot be found in this
table.
+        /// </summary>
+        public abstract int GetOrdinal(FacetLabel label);
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/LruTaxonomyWriterCache.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/LruTaxonomyWriterCache.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/LruTaxonomyWriterCache.cs
index 74bf396..d74891b 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/LruTaxonomyWriterCache.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/LruTaxonomyWriterCache.cs
@@ -1,7 +1,5 @@
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
-
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -26,7 +24,6 @@
     /// </summary>
     public class LruTaxonomyWriterCache : TaxonomyWriterCache
     {
-
         /// <summary>
         /// Determines cache type.
         /// For guaranteed correctness - not relying on no-collisions in the hash
@@ -143,7 +140,5 @@
                 return ret;
             }
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameHashIntCacheLRU.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameHashIntCacheLRU.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameHashIntCacheLRU.cs
index cf135ea..40d67f5 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameHashIntCacheLRU.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameHashIntCacheLRU.cs
@@ -1,7 +1,6 @@
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
-
-	/*
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,32 +17,30 @@
 	 * limitations under the License.
 	 */
 
-	/// <summary>
-	/// An an LRU cache of mapping from name to int.
-	/// Used to cache Ordinals of category paths.
-	/// It uses as key, hash of the path instead of the path.
-	/// This way the cache takes less RAM, but correctness depends on
-	/// assuming no collisions. 
-	/// 
-	/// @lucene.experimental
-	/// </summary>
-	public class NameHashIntCacheLRU : NameIntCacheLRU
-	{
-
-	  internal NameHashIntCacheLRU(int maxCacheSize) : base(maxCacheSize)
-	  {
-	  }
-
-	  internal override object Key(FacetLabel name)
-	  {
-		return new long?(name.LongHashCode());
-	  }
-
-	  internal override object Key(FacetLabel name, int prefixLen)
-	  {
-		return new long?(name.Subpath(prefixLen).LongHashCode());
-	  }
+    /// <summary>
+    /// An an LRU cache of mapping from name to int.
+    /// Used to cache Ordinals of category paths.
+    /// It uses as key, hash of the path instead of the path.
+    /// This way the cache takes less RAM, but correctness depends on
+    /// assuming no collisions. 
+    /// 
+    /// @lucene.experimental
+    /// </summary>
+    public class NameHashIntCacheLRU : NameIntCacheLRU
+    {
+        internal NameHashIntCacheLRU(int maxCacheSize)
+            : base(maxCacheSize)
+        {
+        }
 
-	}
+        internal override object Key(FacetLabel name)
+        {
+            return new long?(name.LongHashCode());
+        }
 
+        internal override object Key(FacetLabel name, int prefixLen)
+        {
+            return new long?(name.Subpath(prefixLen).LongHashCode());
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameIntCacheLRU.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameIntCacheLRU.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameIntCacheLRU.cs
index a761aea..e5c81e5 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameIntCacheLRU.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/NameIntCacheLRU.cs
@@ -30,7 +30,6 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
     // synchronized so that no two methods of this class are called concurrently.
     public class NameIntCacheLRU
     {
-
         private Dictionary<object, int?> cache;
         internal long nMisses = 0; // for debug
         internal long nHits = 0; // for debug
@@ -63,16 +62,16 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
         }
 
         private void CreateCache(int maxSize)
-	  {
-        //if (maxSize < int.MaxValue)
-        //{
-        //    cache = new LRUHashMap<object,int?>(1000,true); //for LRU
-        //}
-        //else
-		{
-		  cache = new Dictionary<object, int?>(1000); //no need for LRU
-		}
-	  }
+        {
+            //if (maxSize < int.MaxValue)
+            //{
+            //    cache = new LRUHashMap<object,int?>(1000,true); //for LRU
+            //}
+            //else
+            {
+                cache = new Dictionary<object, int?>(1000); //no need for LRU
+            }
+        }
 
         internal virtual int? Get(FacetLabel name)
         {
@@ -163,7 +162,5 @@ namespace Lucene.Net.Facet.Taxonomy.WriterCache
             }
             return true;
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/WriterCache/TaxonomyWriterCache.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/WriterCache/TaxonomyWriterCache.cs b/src/Lucene.Net.Facet/Taxonomy/WriterCache/TaxonomyWriterCache.cs
index a20dcd6..b0d32b9 100644
--- a/src/Lucene.Net.Facet/Taxonomy/WriterCache/TaxonomyWriterCache.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/WriterCache/TaxonomyWriterCache.cs
@@ -1,8 +1,5 @@
 namespace Lucene.Net.Facet.Taxonomy.WriterCache
 {
-
-    using DirectoryTaxonomyWriter = Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -20,6 +17,8 @@
      * limitations under the License.
      */
 
+    using DirectoryTaxonomyWriter = Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter;
+
     /// <summary>
     /// TaxonomyWriterCache is a relatively simple interface for a cache of
     /// category->ordinal mappings, used in TaxonomyWriter implementations (such as
@@ -49,7 +48,6 @@
     /// </summary>
     public interface TaxonomyWriterCache
     {
-
         /// <summary>
         /// Let go of whatever resources the cache is holding. After a close(),
         /// this object can no longer be used.
@@ -99,7 +97,5 @@
         /// assume that the cache is still operable after this method returns.
         /// </summary>
         void Clear();
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/TopOrdAndFloatQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/TopOrdAndFloatQueue.cs b/src/Lucene.Net.Facet/TopOrdAndFloatQueue.cs
index 6430624..4b4dad7 100644
--- a/src/Lucene.Net.Facet/TopOrdAndFloatQueue.cs
+++ b/src/Lucene.Net.Facet/TopOrdAndFloatQueue.cs
@@ -1,7 +1,8 @@
-namespace Lucene.Net.Facet
-{
+using Lucene.Net.Util;
 
-	/*
+namespace Lucene.Net.Facet
+{
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,56 +19,51 @@
 	 * limitations under the License.
 	 */
 
-    using Lucene.Net.Util;
-
-	/// <summary>
-	/// Keeps highest results, first by largest float value,
-	///  then tie break by smallest ord. 
-	/// </summary>
-	public class TopOrdAndFloatQueue : PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>
-	{
-
-	  /// <summary>
-	  /// Holds a single entry. </summary>
-	  public sealed class OrdAndValue
-	  {
-
-		/// <summary>
-		/// Ordinal of the entry. </summary>
-		public int ord;
-
-		/// <summary>
-		/// Value associated with the ordinal. </summary>
-		public float value;
+    /// <summary>
+    /// Keeps highest results, first by largest float value,
+    ///  then tie break by smallest ord. 
+    /// </summary>
+    public class TopOrdAndFloatQueue : PriorityQueue<TopOrdAndFloatQueue.OrdAndValue>
+    {
+        /// <summary>
+        /// Holds a single entry. </summary>
+        public sealed class OrdAndValue
+        {
+            /// <summary>
+            /// Ordinal of the entry. </summary>
+            public int ord;
 
-		/// <summary>
-		/// Default constructor. </summary>
-		public OrdAndValue()
-		{
-		}
-	  }
+            /// <summary>
+            /// Value associated with the ordinal. </summary>
+            public float value;
 
-	  /// <summary>
-	  /// Sole constructor. </summary>
-	  public TopOrdAndFloatQueue(int topN) : base(topN, false)
-	  {
-	  }
+            /// <summary>
+            /// Default constructor. </summary>
+            public OrdAndValue()
+            {
+            }
+        }
 
-	  public override bool LessThan(OrdAndValue a, OrdAndValue b)
-	  {
-		if (a.value < b.value)
-		{
-		  return true;
-		}
-		else if (a.value > b.value)
-		{
-		  return false;
-		}
-		else
-		{
-		  return a.ord > b.ord;
-		}
-	  }
-	}
+        /// <summary>
+        /// Sole constructor. </summary>
+        public TopOrdAndFloatQueue(int topN) : base(topN, false)
+        {
+        }
 
+        public override bool LessThan(OrdAndValue a, OrdAndValue b)
+        {
+            if (a.value < b.value)
+            {
+                return true;
+            }
+            else if (a.value > b.value)
+            {
+                return false;
+            }
+            else
+            {
+                return a.ord > b.ord;
+            }
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/TopOrdAndIntQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/TopOrdAndIntQueue.cs b/src/Lucene.Net.Facet/TopOrdAndIntQueue.cs
index 08bdffb..80246e5 100644
--- a/src/Lucene.Net.Facet/TopOrdAndIntQueue.cs
+++ b/src/Lucene.Net.Facet/TopOrdAndIntQueue.cs
@@ -2,7 +2,6 @@
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -20,20 +19,16 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-    using Lucene.Net.Util;
-
     /// <summary>
     /// Keeps highest results, first by largest int value,
     ///  then tie break by smallest ord. 
     /// </summary>
     public class TopOrdAndIntQueue : PriorityQueue<TopOrdAndIntQueue.OrdAndValue>
     {
-
         /// <summary>
         /// Holds a single entry. </summary>
         public sealed class OrdAndValue
         {
-
             /// <summary>
             /// Ordinal of the entry. </summary>
             public int Ord;
@@ -72,5 +67,4 @@ namespace Lucene.Net.Facet
             }
         }
     }
-
 }
\ No newline at end of file


Mime
View raw message