YUKI Hiroshi
null+****@clear*****
Tue Aug 19 12:09:59 JST 2014
YUKI Hiroshi 2014-08-19 12:09:59 +0900 (Tue, 19 Aug 2014) New Revision: afcd6c5ef0d2122fa47739d4a32e6bab11f20c9b https://github.com/droonga/droonga.org/commit/afcd6c5ef0d2122fa47739d4a32e6bab11f20c9b Message: Do pretty printing Modified files: _po/ja/tutorial/1.0.6/dump-restore/index.po ja/tutorial/1.0.6/dump-restore/index.md tutorial/1.0.6/dump-restore/index.md Modified: _po/ja/tutorial/1.0.6/dump-restore/index.po (+146 -23) =================================================================== --- _po/ja/tutorial/1.0.6/dump-restore/index.po 2014-08-19 12:04:07 +0900 (a822be3) +++ _po/ja/tutorial/1.0.6/dump-restore/index.po 2014-08-19 12:09:59 +0900 (669db13) @@ -241,27 +241,105 @@ msgid "" msgstr "もし順番にこのチュートリアルを読み進めているのであれば、クラスタとダンプファイルが既に手元にあるはずです。以下の操作でクラスタを空にしましょう:" msgid "" -" # endpoint=\"http://192.168.0.10:10041\"\n" -" # curl \"$endpoint/d/table_remove?name=Location\"\n" -" [[0,1406610703.2229023,0.0010793209075927734],true]\n" -" # curl \"$endpoint/d/table_remove?name=Store\"\n" -" [[0,1406610708.2757723,0.006396293640136719],true]\n" -" # curl \"$endpoint/d/table_remove?name=Term\"\n" -" [[0,1406610712.379644,0.00006723403930664062],true]" +"~~~\n" +"# endpoint=\"http://192.168.0.10:10041\"\n" +"# curl \"$endpoint/d/table_remove?name=Location\" | jq \".\"\n" +"[\n" +" [\n" +" 0,\n" +" 1406610703.2229023,\n" +" 0.0010793209075927734\n" +" ],\n" +" true\n" +"]\n" +"# curl \"$endpoint/d/table_remove?name=Store\" | jq \".\"\n" +"[\n" +" [\n" +" 0,\n" +" 1406610708.2757723,\n" +" 0.006396293640136719\n" +" ],\n" +" true\n" +"]\n" +"# curl \"$endpoint/d/table_remove?name=Term\" | jq \".\"\n" +"[\n" +" [\n" +" 0,\n" +" 1406610712.379644,\n" +" 6.723403930664062e-05\n" +" ],\n" +" true\n" +"]\n" +"~~~" msgstr "" msgid "After that the cluster becomes empty. Confirm it:" msgstr "これでクラスタは空になりました。確かめてみましょう:" msgid "" -" # endpoint=\"http://192.168.0.10:10041\"\n" -" # curl \"$endpoint/d/table_list\"\n" -" [[0,1406610804.1535122,0.0002875328063964844],[[[\"id\",\"UInt32\"],[\"name\",\"S" -"hortText\"],[\"path\",\"ShortText\"],[\"flags\",\"ShortText\"],[\"domain\",\"ShortText\"],[" -"\"range\",\"ShortText\"],[\"default_tokenizer\",\"ShortText\"],[\"normalizer\",\"ShortTex" -"t\"]]]]\n" -" # curl \"$endpoint/d/select?table=Store&output_columns=name&limit=10\"\n" -" [[0,1401363465.610241,0],[[[null],[]]]]" +"~~~\n" +"# endpoint=\"http://192.168.0.10:10041\"\n" +"# curl \"$endpoint/d/table_list\" | jq \".\"\n" +"[\n" +" [\n" +" 0,\n" +" 1406610804.1535122,\n" +" 0.0002875328063964844\n" +" ],\n" +" [\n" +" [\n" +" [\n" +" \"id\",\n" +" \"UInt32\"\n" +" ],\n" +" [\n" +" \"name\",\n" +" \"ShortText\"\n" +" ],\n" +" [\n" +" \"path\",\n" +" \"ShortText\"\n" +" ],\n" +" [\n" +" \"flags\",\n" +" \"ShortText\"\n" +" ],\n" +" [\n" +" \"domain\",\n" +" \"ShortText\"\n" +" ],\n" +" [\n" +" \"range\",\n" +" \"ShortText\"\n" +" ],\n" +" [\n" +" \"default_tokenizer\",\n" +" \"ShortText\"\n" +" ],\n" +" [\n" +" \"normalizer\",\n" +" \"ShortText\"\n" +" ]\n" +" ]\n" +" ]\n" +"]\n" +"# curl \"$endpoint/d/select?table=Store&output_columns=name&limit=10\" | jq \".\"\n" +"[\n" +" [\n" +" 0,\n" +" 1401363465.610241,\n" +" 0\n" +" ],\n" +" [\n" +" [\n" +" [\n" +" null\n" +" ],\n" +" []\n" +" ]\n" +" ]\n" +"]\n" +"~~~" msgstr "" msgid "### Restore data from a dump result, to an empty Droonga cluster" @@ -303,14 +381,59 @@ msgid "Then the data is completely restored. Confirm it:" msgstr "これで、データが完全に復元されました。確かめてみましょう:" msgid "" -" # $endpoint/select?table=Store&output_columns=name&limit=10\"\n" -" [[0,1401363556.0294158,0.0000762939453125],[[[40],[[\"name\",\"ShortText\"]],[" -"\"1st Avenue & 75th St. - New York NY (W)\"],[\"76th & Second - New York NY (W)" -"\"],[\"Herald Square- Macy's - New York NY\"],[\"Macy's 5th Floor - Herald Square " -"- New York NY (W)\"],[\"80th & York - New York NY (W)\"],[\"Columbus @ 67th - Ne" -"w York NY (W)\"],[\"45th & Broadway - New York NY (W)\"],[\"Marriott Marquis - L" -"obby - New York NY\"],[\"Second @ 81st - New York NY (W)\"],[\"52nd & Seventh - N" -"ew York NY (W)\"]]]]" +"~~~\n" +"# curl $endpoint/select?table=Store&output_columns=name&limit=10\" | jq \".\"\n" +"[\n" +" [\n" +" 0,\n" +" 1401363556.0294158,\n" +" 7.62939453125e-05\n" +" ],\n" +" [\n" +" [\n" +" [\n" +" 40\n" +" ],\n" +" [\n" +" [\n" +" \"name\",\n" +" \"ShortText\"\n" +" ]\n" +" ],\n" +" [\n" +" \"1st Avenue & 75th St. - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"76th & Second - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"Herald Square- Macy's - New York NY\"\n" +" ],\n" +" [\n" +" \"Macy's 5th Floor - Herald Square - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"80th & York - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"Columbus @ 67th - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"45th & Broadway - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"Marriott Marquis - Lobby - New York NY\"\n" +" ],\n" +" [\n" +" \"Second @ 81st - New York NY (W)\"\n" +" ],\n" +" [\n" +" \"52nd & Seventh - New York NY (W)\"\n" +" ]\n" +" ]\n" +" ]\n" +"]\n" +"~~~" msgstr "" msgid "## Duplicate an existing Droonga cluster to another empty cluster directly" Modified: ja/tutorial/1.0.6/dump-restore/index.md (+146 -14) =================================================================== --- ja/tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:04:07 +0900 (c774735) +++ ja/tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:09:59 +0900 (df0b47e) @@ -147,21 +147,102 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong もし順番にこのチュートリアルを読み進めているのであれば、クラスタとダンプファイルが既に手元にあるはずです。以下の操作でクラスタを空にしましょう: - # endpoint="http://192.168.0.10:10041" - # curl "$endpoint/d/table_remove?name=Location" - [[0,1406610703.2229023,0.0010793209075927734],true] - # curl "$endpoint/d/table_remove?name=Store" - [[0,1406610708.2757723,0.006396293640136719],true] - # curl "$endpoint/d/table_remove?name=Term" - [[0,1406610712.379644,0.00006723403930664062],true] +~~~ +# endpoint="http://192.168.0.10:10041" +# curl "$endpoint/d/table_remove?name=Location" | jq "." +[ + [ + 0, + 1406610703.2229023, + 0.0010793209075927734 + ], + true +] +# curl "$endpoint/d/table_remove?name=Store" | jq "." +[ + [ + 0, + 1406610708.2757723, + 0.006396293640136719 + ], + true +] +# curl "$endpoint/d/table_remove?name=Term" | jq "." +[ + [ + 0, + 1406610712.379644, + 6.723403930664062e-05 + ], + true +] +~~~ これでクラスタは空になりました。確かめてみましょう: - # endpoint="http://192.168.0.10:10041" - # curl "$endpoint/d/table_list" - [[0,1406610804.1535122,0.0002875328063964844],[[["id","UInt32"],["name","ShortText"],["path","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["default_tokenizer","ShortText"],["normalizer","ShortText"]]]] - # curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" - [[0,1401363465.610241,0],[[[null],[]]]] +~~~ +# endpoint="http://192.168.0.10:10041" +# curl "$endpoint/d/table_list" | jq "." +[ + [ + 0, + 1406610804.1535122, + 0.0002875328063964844 + ], + [ + [ + [ + "id", + "UInt32" + ], + [ + "name", + "ShortText" + ], + [ + "path", + "ShortText" + ], + [ + "flags", + "ShortText" + ], + [ + "domain", + "ShortText" + ], + [ + "range", + "ShortText" + ], + [ + "default_tokenizer", + "ShortText" + ], + [ + "normalizer", + "ShortText" + ] + ] + ] +] +# curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "." +[ + [ + 0, + 1401363465.610241, + 0 + ], + [ + [ + [ + null + ], + [] + ] + ] +] +~~~ ### ダンプ結果から空のDroongaクラスタへデータを復元する @@ -183,8 +264,59 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong これで、データが完全に復元されました。確かめてみましょう: - # $endpoint/select?table=Store&output_columns=name&limit=10" - [[0,1401363556.0294158,0.0000762939453125],[[[40],[["name","ShortText"]],["1st Avenue & 75th St. - New York NY (W)"],["76th & Second - New York NY (W)"],["Herald Square- Macy's - New York NY"],["Macy's 5th Floor - Herald Square - New York NY (W)"],["80th & York - New York NY (W)"],["Columbus @ 67th - New York NY (W)"],["45th & Broadway - New York NY (W)"],["Marriott Marquis - Lobby - New York NY"],["Second @ 81st - New York NY (W)"],["52nd & Seventh - New York NY (W)"]]]] +~~~ +# curl $endpoint/select?table=Store&output_columns=name&limit=10" | jq "." +[ + [ + 0, + 1401363556.0294158, + 7.62939453125e-05 + ], + [ + [ + [ + 40 + ], + [ + [ + "name", + "ShortText" + ] + ], + [ + "1st Avenue & 75th St. - New York NY (W)" + ], + [ + "76th & Second - New York NY (W)" + ], + [ + "Herald Square- Macy's - New York NY" + ], + [ + "Macy's 5th Floor - Herald Square - New York NY (W)" + ], + [ + "80th & York - New York NY (W)" + ], + [ + "Columbus @ 67th - New York NY (W)" + ], + [ + "45th & Broadway - New York NY (W)" + ], + [ + "Marriott Marquis - Lobby - New York NY" + ], + [ + "Second @ 81st - New York NY (W)" + ], + [ + "52nd & Seventh - New York NY (W)" + ] + ] + ] +] +~~~ ## 既存のクラスタを別の空のクラスタに直接複製する Modified: tutorial/1.0.6/dump-restore/index.md (+146 -14) =================================================================== --- tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:04:07 +0900 (f50d87c) +++ tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:09:59 +0900 (3b363c0) @@ -140,21 +140,102 @@ Assume that there is an empty Droonga cluster constructed from two nodes `192.16 If you are reading this tutorial sequentially, you'll have an existing cluster and the dump file. Make it empty with these commands: - # endpoint="http://192.168.0.10:10041" - # curl "$endpoint/d/table_remove?name=Location" - [[0,1406610703.2229023,0.0010793209075927734],true] - # curl "$endpoint/d/table_remove?name=Store" - [[0,1406610708.2757723,0.006396293640136719],true] - # curl "$endpoint/d/table_remove?name=Term" - [[0,1406610712.379644,0.00006723403930664062],true] +~~~ +# endpoint="http://192.168.0.10:10041" +# curl "$endpoint/d/table_remove?name=Location" | jq "." +[ + [ + 0, + 1406610703.2229023, + 0.0010793209075927734 + ], + true +] +# curl "$endpoint/d/table_remove?name=Store" | jq "." +[ + [ + 0, + 1406610708.2757723, + 0.006396293640136719 + ], + true +] +# curl "$endpoint/d/table_remove?name=Term" | jq "." +[ + [ + 0, + 1406610712.379644, + 6.723403930664062e-05 + ], + true +] +~~~ After that the cluster becomes empty. Confirm it: - # endpoint="http://192.168.0.10:10041" - # curl "$endpoint/d/table_list" - [[0,1406610804.1535122,0.0002875328063964844],[[["id","UInt32"],["name","ShortText"],["path","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["default_tokenizer","ShortText"],["normalizer","ShortText"]]]] - # curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" - [[0,1401363465.610241,0],[[[null],[]]]] +~~~ +# endpoint="http://192.168.0.10:10041" +# curl "$endpoint/d/table_list" | jq "." +[ + [ + 0, + 1406610804.1535122, + 0.0002875328063964844 + ], + [ + [ + [ + "id", + "UInt32" + ], + [ + "name", + "ShortText" + ], + [ + "path", + "ShortText" + ], + [ + "flags", + "ShortText" + ], + [ + "domain", + "ShortText" + ], + [ + "range", + "ShortText" + ], + [ + "default_tokenizer", + "ShortText" + ], + [ + "normalizer", + "ShortText" + ] + ] + ] +] +# curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "." +[ + [ + 0, + 1401363465.610241, + 0 + ], + [ + [ + [ + null + ], + [] + ] + ] +] +~~~ ### Restore data from a dump result, to an empty Droonga cluster @@ -176,8 +257,59 @@ Note to these things: Then the data is completely restored. Confirm it: - # $endpoint/select?table=Store&output_columns=name&limit=10" - [[0,1401363556.0294158,0.0000762939453125],[[[40],[["name","ShortText"]],["1st Avenue & 75th St. - New York NY (W)"],["76th & Second - New York NY (W)"],["Herald Square- Macy's - New York NY"],["Macy's 5th Floor - Herald Square - New York NY (W)"],["80th & York - New York NY (W)"],["Columbus @ 67th - New York NY (W)"],["45th & Broadway - New York NY (W)"],["Marriott Marquis - Lobby - New York NY"],["Second @ 81st - New York NY (W)"],["52nd & Seventh - New York NY (W)"]]]] +~~~ +# curl $endpoint/select?table=Store&output_columns=name&limit=10" | jq "." +[ + [ + 0, + 1401363556.0294158, + 7.62939453125e-05 + ], + [ + [ + [ + 40 + ], + [ + [ + "name", + "ShortText" + ] + ], + [ + "1st Avenue & 75th St. - New York NY (W)" + ], + [ + "76th & Second - New York NY (W)" + ], + [ + "Herald Square- Macy's - New York NY" + ], + [ + "Macy's 5th Floor - Herald Square - New York NY (W)" + ], + [ + "80th & York - New York NY (W)" + ], + [ + "Columbus @ 67th - New York NY (W)" + ], + [ + "45th & Broadway - New York NY (W)" + ], + [ + "Marriott Marquis - Lobby - New York NY" + ], + [ + "Second @ 81st - New York NY (W)" + ], + [ + "52nd & Seventh - New York NY (W)" + ] + ] + ] +] +~~~ ## Duplicate an existing Droonga cluster to another empty cluster directly -------------- next part -------------- HTML����������������������������... Télécharger