lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [38/58] [abbrv] lucenenet git commit: Fixed compile issues with Join.TestBlockJoin after applying IGroupDocs in place of GroupDocs on TopGroups.
Date Thu, 10 Nov 2016 11:47:52 GMT
Fixed compile issues with Join.TestBlockJoin after applying IGroupDocs in place of GroupDocs
on TopGroups.


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

Branch: refs/heads/master
Commit: 7c2c58138999bb31375bccba3e0d8474402e2e83
Parents: 28cd391
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Nov 5 20:24:15 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Nov 8 02:24:55 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests.Join/TestBlockJoin.cs | 26 ++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c2c5813/src/Lucene.Net.Tests.Join/TestBlockJoin.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Join/TestBlockJoin.cs b/src/Lucene.Net.Tests.Join/TestBlockJoin.cs
index c140c75..c87a6b7 100644
--- a/src/Lucene.Net.Tests.Join/TestBlockJoin.cs
+++ b/src/Lucene.Net.Tests.Join/TestBlockJoin.cs
@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using Lucene.Net.Analysis;
 using Lucene.Net.Documents;
-using Lucene.Net.Grouping;
+using Lucene.Net.Search.Grouping;
 using Lucene.Net.Index;
 using Lucene.Net.Join;
 using Lucene.Net.Randomized;
@@ -116,7 +116,7 @@ namespace Lucene.Net.Tests.Join
             assertFalse(float.IsNaN(results.MaxScore));
             assertEquals(1, results.TotalGroupedHitCount);
             assertEquals(1, results.Groups.Length);
-            GroupDocs<int> group = results.Groups[0];
+            IGroupDocs<int> group = results.Groups[0];
             Document childDoc = s.Doc(group.ScoreDocs[0].Doc);
             assertEquals("java", childDoc.Get("skill"));
             assertNotNull(group.GroupValue);
@@ -181,7 +181,7 @@ namespace Lucene.Net.Tests.Join
             assertEquals(1, results.TotalGroupedHitCount);
             assertEquals(1, results.Groups.Length);
 
-            GroupDocs<int> group = results.Groups[0];
+            IGroupDocs<int> group = results.Groups[0];
             assertEquals(1, group.TotalHits);
             assertFalse(float.IsNaN(group.Score));
 
@@ -835,10 +835,10 @@ namespace Lucene.Net.Tests.Join
                     Console.WriteLine("\nTEST: block join index gets " + (joinResults ==
null ? 0 : joinResults.Groups.Length) + " groups; hitsPerGroup=" + hitsPerGroup);
                     if (joinResults != null)
                     {
-                        GroupDocs<int>[] groups = joinResults.Groups;
+                        IGroupDocs<int>[] groups = joinResults.Groups;
                         for (int groupIDX = 0; groupIDX < groups.Length; groupIDX++)
                         {
-                            GroupDocs<int> group = groups[groupIDX];
+                            IGroupDocs<int> group = groups[groupIDX];
                             if (group.GroupSortValues != null)
                             {
                                 Console.Write("  ");
@@ -1084,11 +1084,11 @@ namespace Lucene.Net.Tests.Join
             int joinGroupUpto = 0;
 
             ScoreDoc[] hits = results.ScoreDocs;
-            GroupDocs<int>[] groupDocs = joinResults.Groups;
+            IGroupDocs<int>[] groupDocs = joinResults.Groups;
 
             while (joinGroupUpto < groupDocs.Length)
             {
-                GroupDocs<int> group = groupDocs[joinGroupUpto++];
+                IGroupDocs<int> group = groupDocs[joinGroupUpto++];
                 ScoreDoc[] groupHits = group.ScoreDocs;
                 assertNotNull(group.GroupValue);
                 Document parentDoc = joinR.Document(group.GroupValue);
@@ -1179,7 +1179,7 @@ namespace Lucene.Net.Tests.Join
             assertEquals(1, jobResults.TotalGroupedHitCount);
             assertEquals(1, jobResults.Groups.Length);
 
-            GroupDocs<int> group = jobResults.Groups[0];
+            IGroupDocs<int> group = jobResults.Groups[0];
             assertEquals(1, group.TotalHits);
 
             Document childJobDoc = s.Doc(group.ScoreDocs[0].Doc);
@@ -1195,7 +1195,7 @@ namespace Lucene.Net.Tests.Join
             assertEquals(1, qualificationResults.TotalGroupedHitCount);
             assertEquals(1, qualificationResults.Groups.Length);
 
-            GroupDocs<int> qGroup = qualificationResults.Groups[0];
+            IGroupDocs<int> qGroup = qualificationResults.Groups[0];
             assertEquals(1, qGroup.TotalHits);
 
             Document childQualificationDoc = s.Doc(qGroup.ScoreDocs[0].Doc);
@@ -1315,7 +1315,7 @@ namespace Lucene.Net.Tests.Join
                 assertEquals(2, results.TotalGroupedHitCount);
                 assertEquals(1, results.Groups.Length);
 
-                GroupDocs<int> resultGroup = results.Groups[0];
+                IGroupDocs<int> resultGroup = results.Groups[0];
                 assertEquals(2, resultGroup.TotalHits);
                 assertFalse(float.IsNaN(resultGroup.Score));
                 assertNotNull(resultGroup.GroupValue);
@@ -1339,7 +1339,7 @@ namespace Lucene.Net.Tests.Join
             assertEquals(2, boundedResults.TotalGroupedHitCount);
             assertEquals(1, boundedResults.Groups.Length);
 
-            GroupDocs<int> group = boundedResults.Groups[0];
+            IGroupDocs<int> group = boundedResults.Groups[0];
             assertEquals(2, group.TotalHits);
             assertFalse(float.IsNaN(group.Score));
             assertNotNull(group.GroupValue);
@@ -1413,7 +1413,7 @@ namespace Lucene.Net.Tests.Join
             // One child docs:
             assertEquals(1, groups.TotalGroupedHitCount);
 
-            GroupDocs<int> group = groups.Groups[0];
+            IGroupDocs<int> group = groups.Groups[0];
             Document doc = r.Document((int)group.GroupValue);
             assertEquals("0", doc.Get("parentID"));
 
@@ -1479,7 +1479,7 @@ namespace Lucene.Net.Tests.Join
             // One child docs:
             assertEquals(0, groups.TotalGroupedHitCount);
 
-            GroupDocs<int> group = groups.Groups[0];
+            IGroupDocs<int> group = groups.Groups[0];
             Document doc = r.Document((int)group.GroupValue);
             assertEquals("0", doc.Get("parentID"));
 


Mime
View raw message