[Groonga-commit] droonga/droonga.org at bf509c4 [gh-pages] tutorial adapter: fix API change

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Fri Feb 28 15:51:47 JST 2014


Kouhei Sutou	2014-02-28 15:51:47 +0900 (Fri, 28 Feb 2014)

  New Revision: bf509c453954e96b0e1652779edd789488c6f685
  https://github.com/droonga/droonga.org/commit/bf509c453954e96b0e1652779edd789488c6f685

  Message:
    tutorial adapter: fix API change
    
    command ->
    type

  Modified files:
    _po/ja/tutorial/plugin-development/adapter/index.po
    ja/tutorial/plugin-development/adapter/index.md
    tutorial/plugin-development/adapter/index.md

  Modified: _po/ja/tutorial/plugin-development/adapter/index.po (+4 -4)
===================================================================
--- _po/ja/tutorial/plugin-development/adapter/index.po    2014-02-28 15:43:33 +0900 (2b96a3c)
+++ _po/ja/tutorial/plugin-development/adapter/index.po    2014-02-28 15:51:47 +0900 (87ab42d)
@@ -716,8 +716,8 @@ msgid ""
 msgstr ""
 
 msgid ""
-"          input_message.command = \"search\"\n"
-"          input_message.body    = body\n"
+"          input_message.type = \"search\"\n"
+"          input_message.body = body\n"
 "        end\n"
 "      end\n"
 "    end\n"
@@ -819,8 +819,8 @@ msgid ""
 "h.result\"`, from `\"search.result\"`. Because it is triggered from the incoming "
 "message with the type `\"storeSearch\"`, the outgoing message has the type `\"(in"
 "coming command).result\"` automatically. In other words, you don't have to chan"
-"ge the type of the outgoing messages, like `input_message.command = \"search\"` "
-"in the method `adapt_input`."
+"ge the type of the outgoing messages, like `input_message.type = \"search\"` in "
+"the method `adapt_input`."
 msgstr ""
 
 msgid "### Return simple response"

  Modified: ja/tutorial/plugin-development/adapter/index.md (+3 -3)
===================================================================
--- ja/tutorial/plugin-development/adapter/index.md    2014-02-28 15:43:33 +0900 (6b0c770)
+++ ja/tutorial/plugin-development/adapter/index.md    2014-02-28 15:51:47 +0900 (215b6e0)
@@ -533,8 +533,8 @@ module Droonga
             }
           }
 
-          input_message.command = "search"
-          input_message.body    = body
+          input_message.type = "search"
+          input_message.body = body
         end
       end
     end
@@ -618,7 +618,7 @@ And you will see the result on fluentd's log in `fluentd.log`:
 
 Now we can perform store search with simple requests.
 
-Note: look at the `"type"` of the response message. Now it became `"storeSearch.result"`, from `"search.result"`. Because it is triggered from the incoming message with the type `"storeSearch"`, the outgoing message has the type `"(incoming command).result"` automatically. In other words, you don't have to change the type of the outgoing messages, like `input_message.command = "search"` in the method `adapt_input`.
+Note: look at the `"type"` of the response message. Now it became `"storeSearch.result"`, from `"search.result"`. Because it is triggered from the incoming message with the type `"storeSearch"`, the outgoing message has the type `"(incoming command).result"` automatically. In other words, you don't have to change the type of the outgoing messages, like `input_message.type = "search"` in the method `adapt_input`.
 
 ### Return simple response
 

  Modified: tutorial/plugin-development/adapter/index.md (+3 -3)
===================================================================
--- tutorial/plugin-development/adapter/index.md    2014-02-28 15:43:33 +0900 (e559d91)
+++ tutorial/plugin-development/adapter/index.md    2014-02-28 15:51:47 +0900 (bebe364)
@@ -524,8 +524,8 @@ module Droonga
             }
           }
 
-          input_message.command = "search"
-          input_message.body    = body
+          input_message.type = "search"
+          input_message.body = body
         end
       end
     end
@@ -609,7 +609,7 @@ And you will see the result on fluentd's log in `fluentd.log`:
 
 Now we can perform store search with simple requests.
 
-Note: look at the `"type"` of the response message. Now it became `"storeSearch.result"`, from `"search.result"`. Because it is triggered from the incoming message with the type `"storeSearch"`, the outgoing message has the type `"(incoming command).result"` automatically. In other words, you don't have to change the type of the outgoing messages, like `input_message.command = "search"` in the method `adapt_input`.
+Note: look at the `"type"` of the response message. Now it became `"storeSearch.result"`, from `"search.result"`. Because it is triggered from the incoming message with the type `"storeSearch"`, the outgoing message has the type `"(incoming command).result"` automatically. In other words, you don't have to change the type of the outgoing messages, like `input_message.type = "search"` in the method `adapt_input`.
 
 ### Return simple response
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index