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
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "13158",
"_id" : "products/13158",
"_rev" : "_WnWW6rG--_",
"text" : "this text contains word"
},
{
"_key" : "13162",
"_id" : "products/13162",
"_rev" : "_WnWW6rG--B",
"text" : "this text also has a word"
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}