[Groonga-commit] droonga/fluent-plugin-droonga at 5a37836 [master] Add test for complex format search results

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 28 19:57:09 JST 2013


YUKI Hiroshi	2013-11-28 19:57:09 +0900 (Thu, 28 Nov 2013)

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

  Message:
    Add test for complex format search results

  Added files:
    test/command/suite/search/complex.expected
    test/command/suite/search/complex.test

  Added: test/command/suite/search/complex.expected (+52 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/complex.expected    2013-11-28 19:57:09 +0900 (f990d5f)
@@ -0,0 +1,52 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "result": {
+        "count": 9,
+        "records": [
+          {
+            "_key": "1.1",
+            "title": "Groonga overview"
+          },
+          {
+            "_key": "1.2",
+            "title": "Full text search and Instant update"
+          },
+          {
+            "_key": "1.3",
+            "title": "Column store and aggregate query"
+          },
+          {
+            "_key": "1.4",
+            "title": "Inverted index and tokenizer"
+          },
+          {
+            "_key": "1.5",
+            "title": "Sharable storage and read lock-free"
+          },
+          {
+            "_key": "1.6",
+            "title": "Geo-location (latitude and longitude) search"
+          },
+          {
+            "_key": "1.7",
+            "title": "Groonga library"
+          },
+          {
+            "_key": "1.8",
+            "title": "Groonga server"
+          },
+          {
+            "_key": "1.9",
+            "title": "Groonga storage engine"
+          }
+        ]
+      }
+    }
+  }
+]

  Added: test/command/suite/search/complex.test (+25 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/complex.test    2013-11-28 19:57:09 +0900 (2c40f8d)
@@ -0,0 +1,25 @@
+#@include fixture/documents.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "result": {
+        "source": "Sections",
+        "sortBy": ["_key"],
+        "output": {
+          "elements": [
+            "startTime",
+            "elapsedTime",
+            "count",
+            "attributes",
+            "records"
+          ],
+          "format": "complex",
+          "limit": -1,
+          "attributes": ["_key", "title"]
+        }
+      }
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



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