YUKI Piro Hiroshi
null+****@clear*****
Sat Feb 8 17:21:55 JST 2014
YUKI "Piro" Hiroshi 2014-02-08 17:21:55 +0900 (Sat, 08 Feb 2014) New Revision: bac98e86d1feefbbe0667535f4296c274e3e0aff https://github.com/droonga/droonga.org/commit/bac98e86d1feefbbe0667535f4296c274e3e0aff Message: Add notes about plugins order See the comment of 44bb35ba06c74a62df44f77fd5b840a772d70d2b Modified files: tutorial/plugin-development/adapter/index.md Modified: tutorial/plugin-development/adapter/index.md (+7 -3) =================================================================== --- tutorial/plugin-development/adapter/index.md 2014-02-08 17:11:00 +0900 (2e6ad47) +++ tutorial/plugin-development/adapter/index.md 2014-02-08 17:21:55 +0900 (e969aee) @@ -80,7 +80,7 @@ This plugin does nothing except registering itself to Droonga. ### Activate the plugin with `catalog.json` You need to update `catalog.json` to activate your plugin. -Add the name of the plugin `"sample-logger"` to the `"plugins"` list under the dataset, like: +Insert the name of the plugin `"sample-logger"` to the `"plugins"` list under the dataset, like: catalog.json: @@ -89,10 +89,12 @@ catalog.json: "datasets": { "Starbucks": { (snip) - "plugins": ["crud", "search", "groonga", "sample-logger"], + "plugins": ["sample-logger", "groonga", "crud", "search"], (snip) ~~~ +Note: you must place `"sample-logger"` before `"search"`, because the `sample-logger` plugin depends on the `search`. Droonga Engine applies plugins on the adaption phase in the order defined in the `catalog.json`, so you must resolve plugin dependencies by your hand (for now). + ### Run Let's Droonga get started. @@ -373,10 +375,12 @@ catalog.json: "datasets": { "Starbucks": { (snip) - "plugins": ["crud", "search", "groonga", "store-search"], + "plugins": ["store-search", "groonga", "crud", "search"], (snip) ~~~ +Remember, you must place your plugin `"store-search"` before the `"search"` because yours depends on it. + Now you can use this new command by the following request: store-search-columbus.json: -------------- next part -------------- HTML����������������������������...Download