You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.0 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: How to start or stop indexing and get indexing status?

Following endpoints have been created to enable user to toggle reducing:
- StartReducing
- StopReducing

StartReducing

Starts reducing, if it was previously stopped.

Syntax

curl \
	http://{serverName}/databases/{databaseName}/admin/startReducing \
	-X POST \
    -d ""
Payload
Empty

Response

Status code Description
204 No Content

Example

curl -X POST "http://localhost:8080/databases/NorthWind/admin/StartReducing" -d ""
< HTTP/1.1 204 No Content

StopReducing

Stops reducing, if it was running.

Syntax

curl \
	http://{serverName}/databases/{databaseName}/admin/StopReducing \
	-X POST 
    -d ""

Response

Status code Description
204 No Content

Example

curl -X POST "http://localhost:8080/databases/NorthWind/admin/StopReducing" -d ""
< HTTP/1.1 204 No Content