lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [20/46] lucenenet git commit: Fixed bug in Facet.Taxonomy.Directory.DirectoryTaxonomyWriter.MemoryOrdinalMap - setting size has no effect on the size of the array.
Date Tue, 04 Oct 2016 20:01:50 GMT
Fixed bug in Facet.Taxonomy.Directory.DirectoryTaxonomyWriter.MemoryOrdinalMap - setting size
has no effect on the size of the array.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e4b7e0ba
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e4b7e0ba
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e4b7e0ba

Branch: refs/heads/master
Commit: e4b7e0ba9924265db97a0699da7487f6acd6f759
Parents: e72d3cb
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Sep 25 12:06:55 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Oct 3 23:31:19 2016 +0700

----------------------------------------------------------------------
 .../Taxonomy/Directory/DirectoryTaxonomyWriter.cs               | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4b7e0ba/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
index a1c1939..b6dc7a1 100644
--- a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
@@ -995,7 +995,10 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
                 map = new int[] { };
             }
 
-            public int Size { set; private get; }
+            public int Size
+            {
+                set { map = new int[value]; }
+            }
 
             public void AddMapping(int origOrdinal, int newOrdinal)
             {


Mime
View raw message