shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/fulltext <<EOF
{
"collection" : "products",
"attribute" : "text",
"query" : "word"
}
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "105746",
"_id" : "products/105746",
"_rev" : "_Y2g62SC--B",
"text" : "this text contains word"
},
{
"_key" : "105750",
"_id" : "products/105750",
"_rev" : "_Y2g62SG--_",
"text" : "this text also has a word"
}
],
"hasMore" : false,
"count" : 2,
"error" : false,
"code" : 201
}