[Groonga-commit] groonga/groonga at 97fbf6a [master] test: add a test for creating forward index

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 10 17:53:41 JST 2014


Kouhei Sutou	2014-02-10 17:53:41 +0900 (Mon, 10 Feb 2014)

  New Revision: 97fbf6a6f9a7167ce1a66e28f67caf370a0c572d
  https://github.com/groonga/groonga/commit/97fbf6a6f9a7167ce1a66e28f67caf370a0c572d

  Message:
    test: add a test for creating forward index

  Added files:
    test/command/suite/column_create/index/forward.expected
    test/command/suite/column_create/index/forward.test

  Added: test/command/suite/column_create/index/forward.expected (+74 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/column_create/index/forward.expected    2014-02-10 17:53:41 +0900 (ddaf168)
@@ -0,0 +1,74 @@
+table_create Tags TABLE_PAT_KEY ShortText
+[[0,0.0,0.0],true]
+table_create Shops TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Shops tags COLUMN_INDEX|WITH_WEIGHT Tags
+[[0,0.0,0.0],true]
+column_list Shops
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        "id",
+        "UInt32"
+      ],
+      [
+        "name",
+        "ShortText"
+      ],
+      [
+        "path",
+        "ShortText"
+      ],
+      [
+        "type",
+        "ShortText"
+      ],
+      [
+        "flags",
+        "ShortText"
+      ],
+      [
+        "domain",
+        "ShortText"
+      ],
+      [
+        "range",
+        "ShortText"
+      ],
+      [
+        "source",
+        "ShortText"
+      ]
+    ],
+    [
+      257,
+      "_key",
+      "",
+      "",
+      "COLUMN_SCALAR",
+      "Shops",
+      "ShortText",
+      [
+
+      ]
+    ],
+    [
+      258,
+      "tags",
+      "db/db.0000102",
+      "index",
+      "COLUMN_INDEX|WITH_WEIGHT|PERSISTENT",
+      "Shops",
+      "Tags",
+      [
+
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/column_create/index/forward.test (+6 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/column_create/index/forward.test    2014-02-10 17:53:41 +0900 (526a25b)
@@ -0,0 +1,6 @@
+table_create Tags TABLE_PAT_KEY ShortText
+
+table_create Shops TABLE_HASH_KEY ShortText
+column_create Shops tags COLUMN_INDEX|WITH_WEIGHT Tags
+
+column_list Shops
-------------- next part --------------
HTML����������������������������...
Download 



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