[Groonga-commit] droonga/droonga.org at 329d92e [gh-pages] Fix errors in the sample code

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 7 21:18:40 JST 2014


YUKI Hiroshi	2014-02-07 21:18:40 +0900 (Fri, 07 Feb 2014)

  New Revision: 329d92ec0891e7f4fb01b27cc6356c8e2b606935
  https://github.com/droonga/droonga.org/commit/329d92ec0891e7f4fb01b27cc6356c8e2b606935

  Message:
    Fix errors in the sample code

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

  Modified: tutorial/plugin-development/adapter/index.md (+7 -5)
===================================================================
--- tutorial/plugin-development/adapter/index.md    2014-02-07 21:17:24 +0900 (4f71f67)
+++ tutorial/plugin-development/adapter/index.md    2014-02-07 21:18:40 +0900 (5989027)
@@ -314,6 +314,8 @@ First, create the `store-searach` plugin. Remember, you must put codes into a fi
 lib/droonga/plugins/store-search.rb:
 
 ~~~ruby
+require "droonga/plugin"
+
 module Droonga
   module Plugins
     module StoreSearchPlugin
@@ -334,7 +336,7 @@ module Droonga
                 "source"    => "Store",
                 "condition" => {
                   "query"   => query,
-                  "matchTo" => "_key"
+                  "matchTo" => "_key",
                 },
                 "output"    => {
                   "elements"   => [
@@ -342,12 +344,12 @@ module Droonga
                     "elapsedTime",
                     "count",
                     "attributes",
-                    "records"
+                    "records",
                   ],
                   "attributes" => [
-                    "_key"
+                    "_key",
                   ],
-                  "limit"      => -1
+                  "limit"      => -1,
                 }
               }
             }
@@ -358,7 +360,7 @@ module Droonga
         end
       end
     end
-  en
+  end
 end
 ~~~
 
-------------- next part --------------
HTML����������������������������...
Download 



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