lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [1/2] lucenenet git commit: Lucene.Net.Tests.Facet.Range.TestRangeFacetCounts.DrillSidewaysAnonymousInnerClassHelper refactor: removed unnecessary config field, since it is already exposed as a protected field.
Date Wed, 01 Feb 2017 13:04:15 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work b43ac82a6 -> 11a1a1c36


Lucene.Net.Tests.Facet.Range.TestRangeFacetCounts.DrillSidewaysAnonymousInnerClassHelper refactor:
removed unnecessary config field, since it is already exposed as a protected field.


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

Branch: refs/heads/api-work
Commit: 35e6136e769bf38d1415bf24cee0f9132fc83a56
Parents: b43ac82
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Feb 1 20:00:55 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Feb 1 20:00:55 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests.Facet/Range/TestRangeFacetCounts.cs | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/35e6136e/src/Lucene.Net.Tests.Facet/Range/TestRangeFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Facet/Range/TestRangeFacetCounts.cs b/src/Lucene.Net.Tests.Facet/Range/TestRangeFacetCounts.cs
index 03d8fa7..e602ed8 100644
--- a/src/Lucene.Net.Tests.Facet/Range/TestRangeFacetCounts.cs
+++ b/src/Lucene.Net.Tests.Facet/Range/TestRangeFacetCounts.cs
@@ -287,13 +287,10 @@ namespace Lucene.Net.Facet.Range
         {
             private readonly TestRangeFacetCounts outerInstance;
 
-            private new FacetsConfig config;
-
             public DrillSidewaysAnonymousInnerClassHelper(TestRangeFacetCounts outerInstance,
IndexSearcher s, FacetsConfig config, TaxonomyReader tr)
                 : base(s, config, tr)
             {
                 this.outerInstance = outerInstance;
-                this.config = config;
             }
 
             protected override Facets BuildFacetsResult(FacetsCollector drillDowns, FacetsCollector[]
drillSideways, string[] drillSidewaysDims)
@@ -318,7 +315,7 @@ namespace Lucene.Net.Facet.Range
 
                 IDictionary<string, Facets> byDim = new Dictionary<string, Facets>();
                 byDim["field"] = new LongRangeFacetCounts("field", fieldFC, new LongRange("less
than 10", 0L, true, 10L, false), new LongRange("less than or equal to 10", 0L, true, 10L,
true), new LongRange("over 90", 90L, false, 100L, false), new LongRange("90 or above", 90L,
true, 100L, false), new LongRange("over 1000", 1000L, false, long.MaxValue, false));
-                byDim["dim"] = outerInstance.GetTaxonomyFacetCounts(m_taxoReader, config,
dimFC);
+                byDim["dim"] = outerInstance.GetTaxonomyFacetCounts(m_taxoReader, m_config,
dimFC);
                 return new MultiFacets(byDim, null);
             }
 


Mime
View raw message