ArangoDB v3.10 reached End of Life (EOL) and is no longer supported.
This documentation is outdated. Please see the most recent stable version.
HTTP interface for Analyzers
The HTTP API for Analyzers lets you create and delete Analyzers, as well as list all or get specific Analyzers with all their settings
The RESTful API for managing ArangoSearch Analyzers is accessible via the
/_api/analyzer
endpoint.
See the description of Analyzers for an introduction and the available types, properties and features.
Create an Analyzer
Examples
curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/analyzer
{
"name": "testAnalyzer",
"type": "identity"
}
Get an Analyzer definition
Retrieves the full definition for the specified Analyzer name. The resulting object contains the following attributes:
name
: the Analyzer nametype
: the Analyzer typeproperties
: the properties used to configure the specified typefeatures
: the set of features to set on the Analyzer generated fields
Examples
Retrieve an Analyzer definition:
curl --header 'accept: application/json' --dump - http://localhost:8529/_api/analyzer/testAnalyzer
List all Analyzers
Retrieves a an array of all Analyzer definitions. The resulting array contains objects with the following attributes:
name
: the Analyzer nametype
: the Analyzer typeproperties
: the properties used to configure the specified typefeatures
: the set of features to set on the Analyzer generated fields
Examples
Retrieve all Analyzer definitions:
curl --header 'accept: application/json' --dump - http://localhost:8529/_api/analyzer
Remove an Analyzer
Removes an Analyzer configuration identified by analyzer-name
.
If the Analyzer definition was successfully dropped, an object is returned with the following attributes:
error
:false
name
: The name of the removed Analyzer
Examples
Removing without force
:
curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/analyzer/testAnalyzer
Removing with force
:
curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection
{
"name": "testCollection"
}
curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view
{
"name": "testView",
"type": "arangosearch",
"links": {
"testCollection": {
"analyzers": [
"testAnalyzer"
]
}
}
}
curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/analyzer/testAnalyzer?force=false
curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/analyzer/testAnalyzer?force=true