Skip to content

Reindex Writing Content

POST
/api/writing/reindex

🔄 Rebuild the writing module search index

Triggers a complete rebuild of the search index for all writing documents, ensuring optimal search performance and up-to-date semantic embeddings. Use this after bulk imports or major content changes.

Dependencies:

  • writing_service: Injected IshvanaWritingModule instance

Returns:

  • message: Success confirmation message

Raises:

  • HTTPException 500: If reindexing operation fails

Example Response:

{
    "message": "Writing content reindexed successfully"
}

Successful Response

Response Reindex Writing Content Api Writing Reindex Post
object
key
additional properties
string