[Groonga-commit] droonga/droonga-engine at 00bda2d [master] test: use catalog.json to define schema

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Fri May 2 18:26:55 JST 2014


Kouhei Sutou	2014-05-02 18:26:55 +0900 (Fri, 02 May 2014)

  New Revision: 00bda2df810db092645e9c6da3d6f7ff2b578cf3
  https://github.com/droonga/droonga-engine/commit/00bda2df810db092645e9c6da3d6f7ff2b578cf3

  Message:
    test: use catalog.json to define schema

  Added files:
    test/command/suite/search/condition/nested.catalog.json
  Modified files:
    test/command/suite/search/condition/nested.test

  Added: test/command/suite/search/condition/nested.catalog.json (+37 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/condition/nested.catalog.json    2014-05-02 18:26:55 +0900 (6f66348)
@@ -0,0 +1,37 @@
+{
+  "datasets": {
+    "Droonga": {
+      "schema": {
+        "Sections": {
+          "type": "Hash",
+          "keyType": "ShortText",
+          "columns": {
+            "title": {
+              "type": "Scalar",
+              "valueType": "ShortText"
+            }
+          }
+        },
+        "Terms": {
+          "type": "PatriciaTrie",
+          "keyType": "ShortText",
+          "normalizer": "NormalizerAuto",
+          "tokenizer": "TokenBigram",
+          "columns": {
+            "title_index": {
+              "type": "Index",
+              "valueType": "Sections",
+              "indexOptions": {
+                "sources": [
+                  "title"
+                ],
+                "position": true
+              }
+            }
+          }
+        }
+      },
+      "fact": "Sections"
+    }
+  }
+}

  Modified: test/command/suite/search/condition/nested.test (+102 -1)
===================================================================
--- test/command/suite/search/condition/nested.test    2014-05-02 15:28:07 +0900 (62e6d1a)
+++ test/command/suite/search/condition/nested.test    2014-05-02 18:26:55 +0900 (35bdbe1)
@@ -1,4 +1,105 @@
-#@include fixture/documents.jsons
+#@require-catalog-version 2
+#@disable-logging
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.1",
+    "values": {
+      "title": "Groonga overview"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.2",
+    "values": {
+      "title": "Full text search and Instant update"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.3",
+    "values": {
+      "title": "Column store and aggregate query"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.4",
+    "values": {
+      "title": "Inverted index and tokenizer"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.5",
+    "values": {
+      "title": "Sharable storage and read lock-free"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.6",
+    "values": {
+      "title": "Geo-location (latitude and longitude) search"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.7",
+    "values": {
+      "title": "Groonga library"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.8",
+    "values": {
+      "title": "Groonga server"
+    }
+  }
+}
+{
+  "dataset": "Droonga",
+  "type": "add",
+  "body": {
+    "table": "Sections",
+    "key": "1.9",
+    "values": {
+      "title": "Groonga storage engine"
+    }
+  }
+}
+#@enable-logging
 {
   "type": "search",
   "dataset": "Droonga",
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る