[Groonga-commit] droonga/droonga.org at 5fc8a42 [gh-pages] Add limited response by the plugin

Back to archive index

Yoji Shidara null+****@clear*****
Mon Feb 3 18:48:30 JST 2014


Yoji Shidara	2014-02-03 18:48:30 +0900 (Mon, 03 Feb 2014)

  New Revision: 5fc8a425ac79e453f52d76f19b77cbe529544860
  https://github.com/droonga/droonga.org/commit/5fc8a425ac79e453f52d76f19b77cbe529544860

  Message:
    Add limited response by the plugin

  Modified files:
    tutorial/plugin-development/input-output/index.md

  Modified: tutorial/plugin-development/input-output/index.md (+8 -1)
===================================================================
--- tutorial/plugin-development/input-output/index.md    2014-02-03 18:46:31 +0900 (4ee4591)
+++ tutorial/plugin-development/input-output/index.md    2014-02-03 18:48:30 +0900 (660e1d6)
@@ -198,7 +198,14 @@ module Droonga
 end
 ~~~
 
-And restart fluentd. After restart, the response always includes only one record in `records` section. Note that `count` is still `2` because `limit` does not affect `count`. See [search][] for details.
+And restart fluentd. After restart, the response always includes only one record in `records` section:
+
+~~~
+2014-02-03 18:47:54 +0900 [info]: ExampleInputAdapterPlugin message=#<Droonga::InputMessage:0x007f913ca6e918 @raw_message={"body"=>{"queries"=>{"result"=>{"output"=>{"limit"=>-1, "attributes"=>["_key"], "elements"=>["startTime", "elapsedTime", "count", "attributes", "records"]}, "condition"=>{"matchTo"=>"_key", "query"=>"Columbus"}, "source"=>"Store"}}}, "replyTo"=>{"type"=>"search.result", "to"=>"localhost:24224/output"}, "type"=>"search", "dataset"=>"Starbucks", "id"=>"search"}>
+2014-02-03 18:47:54 +0900 output.message: {"inReplyTo":"search","statusCode":200,"type":"search.result","body":{"result":{"count":2,"records":[["2 Columbus Ave. - New York NY  (W)"]]}}}
+~~~
+
+Note that `count` is still `2` because `limit` does not affect `count`. See [search][] for details of `search` command.
 
   [tutorial]: ../../
   [overview]: ../../../overview/
-------------- next part --------------
HTML����������������������������...
Download 



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