YUKI Hiroshi
null+****@clear*****
Wed May 28 10:29:58 JST 2014
YUKI Hiroshi 2014-05-28 10:29:58 +0900 (Wed, 28 May 2014) New Revision: 18241f8a932ec6b609ea463e5c128bc8dbd12ec0 https://github.com/droonga/droonga.org/commit/18241f8a932ec6b609ea463e5c128bc8dbd12ec0 Message: Update translated versions Modified files: _po/ja/reference/1.0.2/commands/index.po ja/reference/1.0.2/commands/index.md ja/tutorial/1.0.2/groonga/index.md Modified: _po/ja/reference/1.0.2/commands/index.po (+0 -6) =================================================================== --- _po/ja/reference/1.0.2/commands/index.po 2014-05-28 10:28:02 +0900 (8ef7497) +++ _po/ja/reference/1.0.2/commands/index.po 2014-05-28 10:29:58 +0900 (d0486e5) @@ -31,13 +31,7 @@ msgstr "" msgid "" " * [column_create](column-create/)\n" -" * [column_list](column-list/)\n" -" * [column_remove](column-remove/)\n" -" * [column_rename](column-rename/)\n" -" * [delete](delete/)\n" -" * [load](load/)\n" " * [select](select/)\n" " * [table_create](table-create/)\n" -" * [table_list](table-list/)\n" " * [table_remove](table-remove/)" msgstr "" Modified: ja/reference/1.0.2/commands/index.md (+0 -6) =================================================================== --- ja/reference/1.0.2/commands/index.md 2014-05-28 10:28:02 +0900 (ae3fb3b) +++ ja/reference/1.0.2/commands/index.md 2014-05-28 10:29:58 +0900 (1934956) @@ -22,12 +22,6 @@ layout: ja ## Groonga互換コマンド * [column_create](column-create/) - * [column_list](column-list/) - * [column_remove](column-remove/) - * [column_rename](column-rename/) - * [delete](delete/) - * [load](load/) * [select](select/) * [table_create](table-create/) - * [table_list](table-list/) * [table_remove](table-remove/) Modified: ja/tutorial/1.0.2/groonga/index.md (+26 -26) =================================================================== --- ja/tutorial/1.0.2/groonga/index.md 2014-05-28 10:28:02 +0900 (2d21c16) +++ ja/tutorial/1.0.2/groonga/index.md 2014-05-28 10:29:58 +0900 (a073ba2) @@ -142,46 +142,46 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ # kill $(cat ~/droonga/droonga-engine.pid) # kill $(cat ~/droonga/droonga-http-server.pid) -### Create a table +### テーブルの作成 -Now your Droonga cluster actually works as a Groonga's HTTP server. +以上の手順で、Groonga HTTPサーバ互換のサービスとして動作するDroongaクラスタができました。 -Requests are completely same to ones for a Groonga server. -To create a new table `Store`, you just have to send a GET request for the `table_create` command, like: +リクエストの送信方法はGroongaサーバの場合と全く同じです。 +新しいテーブル `Store` を作るには、`table_create` コマンドにあたるGETリクエストを送信して下さい: # curl "http://192.168.0.10:10041/d/table_create?name=Store&type=Hash&key_type=ShortText" [[0,1398662266.3853862,0.08530688285827637],true] -Note that you have to specify the host, one of Droonga nodes with active droonga-http-server, in your Droonga cluster. -In other words, you can use any favorite node in the cluster as an endpoint. -All requests will be distributed to suitable nodes in the cluster. +リクエストの送信先として、Droongaノード中でdroonga-http-serverが動作しているDroongaノードのどれか1つを指定する必要がある事に注意して下さい。 +言い換えると、接続先(エンドポイント)としてはクラスタ中のどのノードでも好きな物を使う事ができます。 +すべてのリクエストは、クラスタ中の適切なノードに配送されます。 -OK, now the table has been created successfully. -Let's see it by the `table_list` command: +さて、テーブルを正しく作成できました。 +`table_list` コマンドを使って、作成されたテーブルの情報を見てみましょう: # curl "http://192.168.0.10:10041/d/table_list" [[0,1398662423.509928,0.003869295120239258],[[["id","UInt32"],["name","ShortText"],["path","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["default_tokenizer","ShortText"],["normalizer","ShortText"]],[256,"Store","/home/username/groonga/droonga-engine/000/db.0000100","TABLE_HASH_KEY|PERSISTENT","ShortText",null,null,null]]] -Because it is a cluster, another endpoint returns same result. +Droongaはクラスタで動作するので、他のエンドポイントも同じ結果を返します。 # curl "http://192.168.0.11:10041/d/table_list" [[0,1398662423.509928,0.003869295120239258],[[["id","UInt32"],["name","ShortText"],["path","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["default_tokenizer","ShortText"],["normalizer","ShortText"]],[256,"Store","/home/username/groonga/droonga-engine/000/db.0000100","TABLE_HASH_KEY|PERSISTENT","ShortText",null,null,null]]] -### Create a column +### カラムの作成 -Next, create a new column `location` to the `Store` table by the `column_create` command, like: +次は、`column_create` コマンドを使って `Store` テーブルに `location` という新しいカラムを作ります: # curl "http://192.168.0.10:10041/d/column_create?table=Store&name=location&flags=COLUMN_SCALAR&type=WGS84GeoPoint" [[0,1398664305.8856306,0.00026226043701171875],true] -Then verify that the column is correctly created, by the `column_list` command: +`column_list` コマンドを使って、カラムが正しく作成された事を確認しましょう: # curl "http://192.168.0.10:10041/d/column_list?table=Store" [[0,1398664345.9680889,0.0011739730834960938],[[["id","UInt32"],["name","ShortText"],["path","ShortText"],["type","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["source","ShortText"]],[257,"location","/home/username/groonga/droonga-engine/000/db.0000101","fix","COLUMN_SCALAR","Store","WGS84GeoPoint",[]]]] -### Create indexes +### インデックスの作成 -Create indexes also. +インデックスも作成しましょう。 # curl "http://192.168.0.10:10041/d/table_create?name=Location&type=PatriciaTrie&key_type=WGS84GeoPoint" [[0,1398664401.4927232,0.12011909484863281],true] @@ -193,7 +193,7 @@ Create indexes also. [[0,1398664474.7112074,0.12619781494140625],true] -### Load data to a table +### テーブルへのデータの読み込み Let's load data to the `Store` table. First. prepare the data as a JSON file `stores.json`. @@ -246,23 +246,23 @@ stores.json: ] ~~~ -Then, send it as a POST request of the `load` command, like: +データが準備できたら、`load` コマンドのPOSTリクエストとして送信します: # curl --data "@stores.json" "http://192.168.0.10:10041/d/load?table=Store" [[0,1398666180.023,0.069],[40]] -Now all data in the JSON file are successfully loaded. +これで、JSONファイル中のすべてのデータが正しく読み込まれます。 -### Select data from a table +### テーブル中のデータを取り出す -OK, all data is now ready. +以上で、すべてのデータが準備できました。 -As the starter, let's select initial ten records with the `select` command: +試しに、`select` コマンドを使って最初の10レコードを取り出してみましょう: # curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=_key&limit=10" [[0,1398666260.887927,0.000017404556274414062],[[[40],[["_key","ShortText"]],[["1st Avenue & 75th St. - New York NY (W)"],["2nd Ave. & 9th Street - New York NY"],["76th & Second - New York NY (W)"],["15th & Third - New York NY (W)"],["41st and Broadway - New York NY (W)"],["West 43rd and Broadway - New York NY (W)"],["84th & Third Ave - New York NY (W)"],["150 E. 42nd Street - New York NY (W)"],["Macy's 35th Street Balcony - New York NY"],["Herald Square- Macy's - New York NY"]]]]] -Of course you can specify conditions via the `query` option: +もちろん、`query` オプションを使って検索条件を指定する事もできます: # curl "http://192.168.0.10:10041/d/select?table=Store&query=Columbus&match_columns=_key&output_columns=_key&limit=10" [[0,1398670157.661574,0.0012705326080322266],[[[2],[["_key","ShortText"]],[["Columbus @ 67th - New York NY (W)"],["2 Columbus Ave. - New York NY (W)"]]]]] @@ -272,11 +272,11 @@ Of course you can specify conditions via the `query` option: ## まとめ -In this tutorial, you did set up a [Droonga][] cluster on [Ubuntu Linux][Ubuntu] computers. -Moreover, you load data to it and select data from it successfully, as a [Groonga][] compatible server. +このチュートリアルでは、[Ubuntu Linux][Ubuntu]のコンピュータを使って[Droonga][]クラスタを構築しました。 +また、[Groonga][]サーバ互換のシステムとしてデータを読み込ませたり取り出したりすることにも成功しました。 -Currently, Droonga supports only some limited features of Groonga compatible commands. -See the [command reference][] for more details. +現在の所、DroongaはGroonga互換のコマンドのうちいくつかの限定的な機能にのみ対応しています。 +詳細は[コマンドリファレンス][command reference]を参照して下さい。 [Ubuntu]: http://www.ubuntu.com/ [Droonga]: https://droonga.org/ -------------- next part -------------- HTML����������������������������...Download