Lucene Reindex
Reindexes the full-text search database using the Lucene engine. Requires admin password. This is a POST-only endpoint.
Request
POST /nxt?requestType=luceneReindex&adminPassword=<adminPassword>
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
adminPassword | string | Conditional | Admin password required if nxt.adminPassword is set. |
Response
{
"done": true
}
Response Fields
| Field | Type | Description |
|---|---|---|
done | boolean | true if reindexing completed successfully. |
Error Responses
| Condition | Response |
|---|---|
| SQLException during reindex | Error response from JSONData.putException() |
Notes
- This endpoint does not require the blockchain to be running (
requireBlockchain = false). - Not chain-specific.
- Requires admin password authentication (
requirePassword = true). - Requires POST method (
requirePost = true). - Calls
FullTextTrigger.reindex()with a database connection.
Source: LuceneReindex.java.
Example
curl -X POST "http://localhost:22024/nxt" \
-d "requestType=luceneReindex" \
-d "adminPassword=mySecretPassword"