[Groonga-commit] groonga/groonga [master] test function suggest: add a test for coocurrence search in correct

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 8日 (木) 18:13:42 JST


Kouhei Sutou	2012-03-08 18:13:42 +0900 (Thu, 08 Mar 2012)

  New Revision: 72d31c7029a7cc59f2be58496265bfcbd9e05214

  Log:
    test function suggest: add a test for coocurrence search in correct

  Added files:
    test/function/suite/suggest/correct/coocurrence.expected
    test/function/suite/suggest/correct/coocurrence.test

  Added: test/function/suite/suggest/correct/coocurrence.expected (+29 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/suggest/correct/coocurrence.expected    2012-03-08 18:13:42 +0900 (2475e53)
@@ -0,0 +1,29 @@
+suggest   --table item_rurema   --column kana   --types correct   --frequency_threshold 1   --query 'avg'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  {
+    "correct": [
+      [
+        1
+      ],
+      [
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "_score",
+          "Int32"
+        ]
+      ],
+      [
+        "sum",
+        1
+      ]
+    ]
+  }
+]

  Added: test/function/suite/suggest/correct/coocurrence.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/suggest/correct/coocurrence.test    2012-03-08 18:13:42 +0900 (47c2b0b)
@@ -0,0 +1,8 @@
+# include fixture/suggest/rurema/init.grn
+
+suggest \
+  --table item_rurema \
+  --column kana \
+  --types correct \
+  --frequency_threshold 1 \
+  --query 'avg'




Groonga-commit メーリングリストの案内
Back to archive index