[Groonga-commit] droonga/droonga.org at a8a69b4 [gh-pages] Add description for select command

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Nov 12 20:05:17 JST 2013


YUKI Hiroshi	2013-11-12 20:05:17 +0900 (Tue, 12 Nov 2013)

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

  Message:
    Add description for select command

  Modified files:
    ja/reference/commands/add/index.md
    ja/reference/commands/column_create/index.md
    ja/reference/commands/select/index.md
    ja/reference/commands/table_create/index.md

  Modified: ja/reference/commands/add/index.md (+1 -1)
===================================================================
--- ja/reference/commands/add/index.md    2013-11-12 19:33:47 +0900 (320db89)
+++ ja/reference/commands/add/index.md    2013-11-12 20:05:17 +0900 (3ef48eb)
@@ -8,7 +8,7 @@ layout: default
 
 ## 概要
 
-add は、テーブルにレコードを登録します。
+`add` は、テーブルにレコードを登録します。
 
 対象のテーブルが主キーを持っており、同じキーのレコードが既に存在している場合には、既存レコードのカラムの値を更新します。
 

  Modified: ja/reference/commands/column_create/index.md (+1 -1)
===================================================================
--- ja/reference/commands/column_create/index.md    2013-11-12 19:33:47 +0900 (96b329d)
+++ ja/reference/commands/column_create/index.md    2013-11-12 20:05:17 +0900 (b388332)
@@ -8,7 +8,7 @@ layout: default
 
 ## 概要
 
-column_create は、テーブルにカラムを作成します。
+`column_create` は、テーブルにカラムを作成します。
 
 このコマンドは[Groonga の `column_create` コマンド](http://groonga.org/ja/docs/reference/commands/column_create.html)と互換性があります。
 

  Modified: ja/reference/commands/select/index.md (+32 -2)
===================================================================
--- ja/reference/commands/select/index.md    2013-11-12 19:33:47 +0900 (615477c)
+++ ja/reference/commands/select/index.md    2013-11-12 20:05:17 +0900 (f13030e)
@@ -8,16 +8,46 @@ layout: default
 
 ## 概要
 
+`select` は、テーブルから指定された条件にマッチするレコードを検索し、見つかったレコードを返却します。
+
+このコマンドは[Groonga の `select` コマンド](http://groonga.org/ja/docs/reference/commands/select.html)と互換性があります。
 
 ## 構文
 
+    {
+      "table"            : "テーブル名",
+      "match_columns"    : [検索対象のカラム名の文字列の配列],
+      "query"            : "検索条件",
+      "filter"           : "複雑な検索条件",
+      "scorer"           : "見つかったすべてのレコードに適用するgrn_expr",
+      "sortby"           : [ソートキーにするカラム名の文字列の配列],
+      "output_columns"   : [返却するカラム名の文字列の配列],
+      "offset"           : ページングの起点,
+      "limit"            : 返却するレコード数,
+      "drilldown"        : "ドリルダウンするカラム名",
+      "drilldown_sortby" : [ドリルダウン結果のソートキーにするカラム名の文字列の配列],
+      "drilldown_output_columns" :
+                           [ドリルダウン結果として返却するカラム名の文字列の配列],
+      "drilldown_offset" : ドリルダウン結果のページングの起点,
+      "drilldown_limit"  : 返却するドリルダウン結果のレコード数,
+      "cache"            : "クエリキャッシュの指定",
+      "match_escalation_threshold":
+                           検索方法をエスカレーションする閾値,
+      "query_flags"      : "queryパラメーターのカスタマイズ用フラグ",
+      "query_expander"   : "クエリー展開用の引数"
+    }
 
-## 使い方
+## パラメータ
 
+`table` 以外のパラメータはすべて省略可能です。
 
-## パラメータ
+すべてのパラメータは[Groonga の `select` コマンドの引数](http://groonga.org/ja/docs/reference/commands/select.html#parameters)と共通です。詳細はGroongaのコマンドリファレンスを参照して下さい。
 
 
 ## レスポンス
 
+ * 型:配列
+ * 値:検索結果の配列。
+
+検索結果の配列の構造は[Groonga の `select` コマンドの返り値](http://groonga.org/ja/docs/reference/commands/select.html#id6)と共通です。詳細はGroongaのコマンドリファレンスを参照して下さい。
 

  Modified: ja/reference/commands/table_create/index.md (+1 -1)
===================================================================
--- ja/reference/commands/table_create/index.md    2013-11-12 19:33:47 +0900 (fa3048f)
+++ ja/reference/commands/table_create/index.md    2013-11-12 20:05:17 +0900 (5a1a046)
@@ -8,7 +8,7 @@ layout: default
 
 ## 概要
 
-table_create は、テーブルを作成します。
+`table_create` は、テーブルを作成します。
 
 このコマンドは[Groonga の `table_create` コマンド](http://groonga.org/ja/docs/reference/commands/table_create.html)と互換性があります。
 
-------------- next part --------------
HTML����������������������������...
Download 



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