[Groonga-commit] groonga/groonga [master] test: add a test for term extract in filter

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 9日 (月) 15:19:50 JST


Kouhei Sutou	2012-07-09 15:19:50 +0900 (Mon, 09 Jul 2012)

  New Revision: 27d47764088d99a52dc8ea79fc4f1d493943cb72
  https://github.com/groonga/groonga/commit/27d47764088d99a52dc8ea79fc4f1d493943cb72

  Log:
    test: add a test for term extract in filter
    
    The syntax is '_key *T "document"'.

  Added files:
    test/function/suite/select/filter/term_extract.expected
    test/function/suite/select/filter/term_extract.test

  Added: test/function/suite/select/filter/term_extract.expected (+43 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/select/filter/term_extract.expected    2012-07-09 15:19:50 +0900 (5e18d94)
@@ -0,0 +1,43 @@
+table_create Words TABLE_PAT_KEY|KEY_NORMALIZE ShortText
+[[0,0.0,0.0],true]
+load --table Words
+[
+{"_key": "groonga"},
+{"_key": "mroonga"},
+{"_key": "Senna"},
+{"_key": "Tritonn"}
+]
+[[0,0.0,0.0],4]
+select Words --filter '_key *T "Groonga is the successor project to Senna."'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        2
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "_key",
+          "ShortText"
+        ]
+      ],
+      [
+        1,
+        "groonga"
+      ],
+      [
+        3,
+        "senna"
+      ]
+    ]
+  ]
+]

  Added: test/function/suite/select/filter/term_extract.test (+10 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/select/filter/term_extract.test    2012-07-09 15:19:50 +0900 (95fe270)
@@ -0,0 +1,10 @@
+table_create Words TABLE_PAT_KEY|KEY_NORMALIZE ShortText
+load --table Words
+[
+{"_key": "groonga"},
+{"_key": "mroonga"},
+{"_key": "Senna"},
+{"_key": "Tritonn"}
+]
+
+select Words --filter '_key *T "Groonga is the successor project to Senna."'
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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