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

Back to archive index

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


Kouhei Sutou	2012-03-08 18:14:53 +0900 (Thu, 08 Mar 2012)

  New Revision: c8e058bcfa329b317ac967a7d64a0f9a38032d8a

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

  Added files:
    test/function/suite/suggest/correct/similar-search.expected
    test/function/suite/suggest/correct/similar-search.test

  Added: test/function/suite/suggest/correct/similar-search.expected (+29 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/suggest/correct/similar-search.expected    2012-03-08 18:14:53 +0900 (562b816)
@@ -0,0 +1,29 @@
+suggest   --table item_rurema   --column kana   --types correct   --frequency_threshold 1   --query 'kernel'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  {
+    "correct": [
+      [
+        1
+      ],
+      [
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "_score",
+          "Int32"
+        ]
+      ],
+      [
+        "kernel.",
+        1
+      ]
+    ]
+  }
+]

  Added: test/function/suite/suggest/correct/similar-search.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/suggest/correct/similar-search.test    2012-03-08 18:14:53 +0900 (906e546)
@@ -0,0 +1,8 @@
+# include fixture/suggest/rurema/init.grn
+
+suggest \
+  --table item_rurema \
+  --column kana \
+  --types correct \
+  --frequency_threshold 1 \
+  --query 'kernel'




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