[Groonga-commit] droonga/droonga.org at d3bb178 [gh-pages] Fix command lines

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Fri Mar 28 19:43:26 JST 2014


YUKI Hiroshi	2014-03-28 19:43:26 +0900 (Fri, 28 Mar 2014)

  New Revision: d3bb178f3bad3094400c96663c4af3cb0c86a588
  https://github.com/droonga/droonga.org/commit/d3bb178f3bad3094400c96663c4af3cb0c86a588

  Message:
    Fix command lines

  Modified files:
    _po/ja/tutorial/basic/index.po
    ja/tutorial/basic/index.md
    tutorial/basic/index.md

  Modified: _po/ja/tutorial/basic/index.po (+4 -3)
===================================================================
--- _po/ja/tutorial/basic/index.po    2014-03-28 17:21:03 +0900 (ec50f12)
+++ _po/ja/tutorial/basic/index.po    2014-03-28 19:43:26 +0900 (f55dfa0)
@@ -1542,7 +1542,9 @@ msgstr ""
 msgid "Then, run it."
 msgstr "次に、サーバを起動します。"
 
-msgid "    # droonga-http-server"
+msgid ""
+"    # droonga-http-server --port 3000 --default-dataset Starbucks --tag starbu"
+"cks"
 msgstr ""
 
 msgid "### Search request via HTTP"
@@ -1564,8 +1566,7 @@ msgstr ""
 "として受け取ることができます)"
 
 msgid ""
-"    # curl \"http://localhost:3000/droonga/tables/Store?attributes=_key&limit=-"
-"1\"\n"
+"    # curl \"http://localhost:3000/tables/Store?attributes=_key&limit=-1\"\n"
 "    {\n"
 "      \"stores\": {\n"
 "        \"count\": 40,\n"

  Modified: ja/tutorial/basic/index.md (+2 -2)
===================================================================
--- ja/tutorial/basic/index.md    2014-03-28 17:21:03 +0900 (fa72721)
+++ ja/tutorial/basic/index.md    2014-03-28 19:43:26 +0900 (01b4c03)
@@ -1345,14 +1345,14 @@ HTTP Protocol Adapterとして`droonga-http-server`を使用します。`droonga
 
 次に、サーバを起動します。
 
-    # droonga-http-server
+    # droonga-http-server --port 3000 --default-dataset Starbucks --tag starbucks
 
 
 ### HTTPでの検索リクエスト
 
 準備が整いました。 Protocol Adapter に向けて HTTP 経由でリクエストを発行し、データベースに問い合わせを行ってみましょう。まずは `Shops` テーブルの中身を取得してみます。以下のようなリクエストを用います。(`attributes=_key` を指定しているのは「検索結果に `_key` 値を含めて返してほしい」という意味です。これがないと、`records` に何も値がないレコードが返ってきてしまいます。`attributes` パラメータには `,` 区切りで複数の属性を指定することができます。`attributes=_key,location` と指定することで、緯度経度もレスポンスとして受け取ることができます)
 
-    # curl "http://localhost:3000/droonga/tables/Store?attributes=_key&limit=-1"
+    # curl "http://localhost:3000/tables/Store?attributes=_key&limit=-1"
     {
       "stores": {
         "count": 40,

  Modified: tutorial/basic/index.md (+2 -2)
===================================================================
--- tutorial/basic/index.md    2014-03-28 17:21:03 +0900 (2b12046)
+++ tutorial/basic/index.md    2014-03-28 19:43:26 +0900 (c4439ad)
@@ -1338,14 +1338,14 @@ Let's use the `droonga-http-server` as an HTTP protocol adapter. It is an npm pa
 
 Then, run it.
 
-    # droonga-http-server
+    # droonga-http-server --port 3000 --default-dataset Starbucks --tag starbucks
 
 
 ### Search request via HTTP
 
 We're all set. Let's send a search request to the protocol adapter via HTTP. At first, try to get all records of the `Stores` table by a request like following. (Note: The `attributes=_key` parameter means "export the value of the column `_key` to the search result". If you don't set the parameter, each record returned in the `records` will become just a blank array. You can specify multiple column names by the delimiter `,`. For example `attributes=_key,location` will return both the primary key and the location for each record.)
 
-    # curl "http://localhost:3000/droonga/tables/Store?attributes=_key&limit=-1"
+    # curl "http://localhost:3000/tables/Store?attributes=_key&limit=-1"
     {
       "stores": {
         "count": 40,
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る