Deleting exclusion patterns
Use this API to delete wildcards patterns from the exclusion list.
Requirement: OpenSearchServer v1.5
Call parameters
URL: /services/rest/index/{index_name}/crawler/web/patterns/exclusion
Method: DELETE
HTTP Header:
- Content-Type (required):
application/json
URL parameters:
- index_name (required): The name of the index.
RAW data: an array of patterns
[ "http://www.open-search-server.com/wp-admin/*" ]
Success response
The patterns have been deleted.
HTTP code:
200
Content (application/json):
{
"successful": true,
"info": "1 patterns deleted"
}
Error response
The deletion failed. The reason is provided in the content.
HTTP code:
404, 500
Sample call
Using CURL:
curl -XDELETE -H "Content-Type: application/json" \
http://localhost:8080/services/rest/index/my_index/crawler/web/patterns/exclusion
-d '["http://www.open-search-server.com/*"]'