ArangoDB v3.13 is under development and not released yet. This documentation is not final and potentially incomplete.
HTTP interface for full-text indexes
Create a full-text index
POST
/_db/{database-name}/_api/index
The fulltext index type is deprecated from version 3.10 onwards.
Creates a fulltext index for the collection collection-name
, if
it does not already exist. The call expects an object containing the index
details.
HTTP Headers
Request Body application/json object
Examples
Creating a fulltext index
curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=products
{
"type": "fulltext",
"fields": [
"text"
]
}
Show output
HTTP/1.1 201 Created
content-type: application/json
cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0, s-maxage=0
connection: Keep-Alive
content-length: 182
content-security-policy: frame-ancestors 'self'; form-action 'self';
expires: 0
pragma: no-cache
server: ArangoDB
strict-transport-security: max-age=31536000 ; includeSubDomains
x-arango-queue-time-seconds: 0.000000
x-content-type-options: nosniff
{
"fields" : [
"text"
],
"id" : "products/69118",
"isNewlyCreated" : true,
"minLength" : 2,
"name" : "idx_1793257748263075840",
"sparse" : true,
"type" : "fulltext",
"unique" : false,
"code" : 201,
"error" : false
}