forked from jaeksoft/opensearchserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Auto completion: delete
AlexandreToyer edited this page Sep 30, 2013
·
7 revisions
Use this API to remove the auto-completion item
Requirement: OpenSearchServer v1.5
URL: /services/rest/index/{index_name}/autocompletion/{autocompletion_name}
Method: DELETE
Header:
-
Accept (optional returned type):
application/jsonorapplication/xml
URL parameters:
- index_name (required): The name of the index.
- autocompletion_name (required): The name of the auto-completion item.
The auto-completion item has been deleted.
HTTP code: 200
Content (application/json):
{
"successful": true,
"info": "Autocompletion item my_expressions deleted"
}The build failed. The reason is provided in the content.
HTTP code: 404, 500
Autocompletion item not found: my_expressions
Using CURL:
curl -XDELETE http://localhost:8080/services/rest/index/my_index/autocompletion/my_expressionsUsing jQuery:
$.ajax({
type: "DELETE",
dataType: "json",
url: "http://localhost:8080/services/rest/index/my_index/autocompletion/my_expressions"
}).done(function (data) {
console.log(data);
});