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