[Groonga-commit] droonga/fluent-plugin-droonga at e539a5c [master] Add test of groupBy with limit

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 4 19:51:18 JST 2013


YUKI Hiroshi	2013-12-04 19:51:18 +0900 (Wed, 04 Dec 2013)

  New Revision: e539a5c4f50e739ef066d032de1951f17f223236
  https://github.com/droonga/fluent-plugin-droonga/commit/e539a5c4f50e739ef066d032de1951f17f223236

  Message:
    Add test of groupBy with limit

  Added files:
    test/command/suite/search/group-with-limit.expected
  Copied files:
    test/command/suite/search/group-with-limit.test
      (from test/command/suite/search/group-only-count.test)
  Modified files:
    test/command/suite/search/group-only-count.test

  Modified: test/command/suite/search/group-only-count.test (+5 -3)
===================================================================
--- test/command/suite/search/group-only-count.test    2013-12-04 19:49:13 +0900 (710453c)
+++ test/command/suite/search/group-only-count.test    2013-12-04 19:51:18 +0900 (bf370f4)
@@ -6,11 +6,13 @@
     "queries": {
       "documents": {
         "source": "Sections",
-        "groupBy": "document",
+        "groupBy": "title",
         "output": {
           "elements": [
-            "count"
-          ]
+            "count",
+            "records"
+          ],
+          "limit": 1
         }
       }
     }

  Added: test/command/suite/search/group-with-limit.expected (+15 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/group-with-limit.expected    2013-12-04 19:51:18 +0900 (ee6a0fe)
@@ -0,0 +1,15 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "documents": {
+        "count": 9,
+        "records": []
+      }
+    }
+  }
+]

  Copied: test/command/suite/search/group-with-limit.test (+0 -0) 100%
===================================================================
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index