The delete command removes records in a table.
This is compatible to the delete command of the Groonga.
(ドキュメントルート)/d/deleteGET対応していません。
typedeletebodytypedelete.result{
"table" : "<Name of the table>",
"key" : "<Key of the record>"
}
または
{
"table" : "<Name of the table>",
"id" : "<ID of the record>"
}
または
{
"table" : "<Name of the table>",
"filter" : "<Complex search conditions>"
}
All parameters except table are optional.
However, you must specify one of key, id, or filter to specify the record (records) to be removed.
They are compatible to the parameters of the delete command of the Groonga. See the linked document for more details.
このコマンドは、レスポンスの body としてコマンドの実行結果に関する情報を格納した配列を返却します。
[
[
<Groonga's status code>,
<Start time>,
<Elapsed time>
],
<Records are successfully removed or not>
]
このコマンドはレスポンスの statusCode として常に 200 を返します。これは、Groonga互換コマンドのエラー情報はGroongaのそれと同じ形で処理される必要があるためです。
レスポンスの body の詳細:
0 (Droonga::GroongaHandler::Status::SUCCESS) : 正常に処理された。.-22 (Droonga::GroongaHandler::Status::INVALID_ARGUMENT) : 引数が不正である。true:Records were successfully removed.false:Records were not removed.