[Groonga-commit] droonga/fluent-plugin-droonga at 0bf28ff [master] Update input pattern for basic search collector

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 4 20:25:03 JST 2013


YUKI Hiroshi	2013-12-04 20:25:03 +0900 (Wed, 04 Dec 2013)

  New Revision: 0bf28ffb19e8aa127a66a95704855140bfabc7a3
  https://github.com/droonga/fluent-plugin-droonga/commit/0bf28ffb19e8aa127a66a95704855140bfabc7a3

  Message:
    Update input pattern for basic search collector

  Modified files:
    test/unit/plugin/collector/test_basic.rb

  Modified: test/unit/plugin/collector/test_basic.rb (+44 -20)
===================================================================
--- test/unit/plugin/collector/test_basic.rb    2013-12-04 20:20:43 +0900 (d4b4ad1)
+++ test/unit/plugin/collector/test_basic.rb    2013-12-04 20:25:03 +0900 (7382808)
@@ -84,9 +84,13 @@ class BasicCollectorTest < Test::Unit::TestCase
         },
         :mapping => {
           "output" => "search_result",
-          "element" => "records",
-          "offset" => 1,
-          "limit" => 1,
+          "elements" => {
+            "records" => {
+              "type" => "sort",
+              "offset" => 1,
+              "limit" => 1,
+            },
+          },
         },
       },
       :offset_and_unlimited_limit => {
@@ -107,9 +111,13 @@ class BasicCollectorTest < Test::Unit::TestCase
         },
         :mapping => {
           "output" => "search_result",
-          "element" => "records",
-          "offset" => 1,
-          "limit" => -1,
+          "elements" => {
+            "records" => {
+              "type" => "sort",
+              "offset" => 1,
+              "limit" => -1,
+            },
+          },
         },
       },
       :attributes => {
@@ -129,9 +137,13 @@ class BasicCollectorTest < Test::Unit::TestCase
         },
         :mapping => {
           "output" => "search_result",
-          "element" => "records",
-          "attributes" => ["_key", "chapter", "section", "subsection", "paragraph"],
-          "limit" => -1,
+          "elements" => {
+            "records" => {
+              "type" => "sort",
+              "attributes" => ["_key", "chapter", "section", "subsection", "paragraph"],
+              "limit" => -1,
+            },
+          },
         },
       },
       :attributes_with_sort_attributes => {
@@ -151,9 +163,13 @@ class BasicCollectorTest < Test::Unit::TestCase
         },
         :mapping => {
           "output" => "search_result",
-          "element" => "records",
-          "attributes" => ["_key", "chapter", "section"],
-          "limit" => -1,
+          "elements" => {
+            "records" => {
+              "type" => "sort",
+              "attributes" => ["_key", "chapter", "section"],
+              "limit" => -1,
+            },
+          },
         },
       },
       :format_simple => {
@@ -173,10 +189,14 @@ class BasicCollectorTest < Test::Unit::TestCase
         },
         :mapping => {
           "output" => "search_result",
-          "element" => "records",
-          "format" => "simple",
-          "attributes" => ["_key", "chapter", "section"],
-          "limit" => -1,
+          "elements" => {
+            "records" => {
+              "type" => "sort",
+              "format" => "simple",
+              "attributes" => ["_key", "chapter", "section"],
+              "limit" => -1,
+            },
+          },
         },
       },
       :format_complex => {
@@ -196,10 +216,14 @@ class BasicCollectorTest < Test::Unit::TestCase
         },
         :mapping => {
           "output" => "search_result",
-          "element" => "records",
-          "format" => "complex",
-          "attributes" => ["_key", "chapter", "section"],
-          "limit" => -1,
+          "elements" => {
+            "records" => {
+              "type" => "sort",
+              "format" => "complex",
+              "attributes" => ["_key", "chapter", "section"],
+              "limit" => -1,
+            },
+          },
         },
       },
     )
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index