mirror of https://gitee.com/bigwinds/arangodb
28 lines
642 B
Plaintext
28 lines
642 B
Plaintext
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/fulltext <<EOF
|
|
{ "collection": "products", "attribute" : "text", "query" : "word" }
|
|
EOF
|
|
|
|
HTTP/1.1 201 Created
|
|
content-type: application/json; charset=utf-8
|
|
|
|
{
|
|
"result" : [
|
|
{
|
|
"_id" : "products/854717323",
|
|
"_key" : "854717323",
|
|
"_rev" : "854717323",
|
|
"text" : "this text also has a word"
|
|
},
|
|
{
|
|
"_id" : "products/854520715",
|
|
"_key" : "854520715",
|
|
"_rev" : "854520715",
|
|
"text" : "this text contains word"
|
|
}
|
|
],
|
|
"hasMore" : false,
|
|
"count" : 2,
|
|
"error" : false,
|
|
"code" : 201
|
|
}
|