[Groonga-commit] groonga/groonga [master] test function suggest: add prefix cooccurrence search in complete

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2012年 3月 8日 (木) 17:56:16 JST


Kouhei Sutou	2012-03-08 17:56:16 +0900 (Thu, 08 Mar 2012)

  New Revision: 79aea965221926896673fcd2a8e7765e707644f7

  Log:
    test function suggest: add prefix cooccurrence search in complete

  Added files:
    test/function/suite/suggest/rurema/complete-coocurrence.expected
    test/function/suite/suggest/rurema/complete-coocurrence.test

  Added: test/function/suite/suggest/rurema/complete-coocurrence.expected (+29 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/suggest/rurema/complete-coocurrence.expected    2012-03-08 17:56:16 +0900 (6652c6d)
@@ -0,0 +1,29 @@
+suggest   --table item_rurema   --column kana   --types complete   --frequency_threshold 1   --conditional_probability_threshold 0.1   --query 'stりん'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  {
+    "complete": [
+      [
+        1
+      ],
+      [
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "_score",
+          "Int32"
+        ]
+      ],
+      [
+        "string",
+        1
+      ]
+    ]
+  }
+]

  Added: test/function/suite/suggest/rurema/complete-coocurrence.test (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/suggest/rurema/complete-coocurrence.test    2012-03-08 17:56:16 +0900 (59e306e)
@@ -0,0 +1,9 @@
+# include fixture/suggest/rurema/init.grn
+
+suggest \
+  --table item_rurema \
+  --column kana \
+  --types complete \
+  --frequency_threshold 1 \
+  --conditional_probability_threshold 0.1 \
+  --query 'stりん'




Groonga-commit メーリングリストの案内
アーカイブの一覧に戻る