Class IndexationRest
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.rs.AbstractRestEndpoint
fr.paris.lutece.plugins.wiki.modules.ai.rs.IndexationRest
REST endpoint for managing wiki AI indexation operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseClears the entire index asynchronously.jakarta.ws.rs.core.ResponseRetrieves statistics about the current index.jakarta.ws.rs.core.ResponseRetrieves the current indexing status.jakarta.ws.rs.core.ResponseTriggers a full reindexation of all wiki content.jakarta.ws.rs.core.ResponseindexSpace(String code) Triggers the reindexation of a specific space and all its descendant items.
-
Constructor Details
-
IndexationRest
public IndexationRest()
-
-
Method Details
-
indexFull
@POST @Path("full") @Produces("application/json") public jakarta.ws.rs.core.Response indexFull()Triggers a full reindexation of all wiki content.- Returns:
- response containing success message or error details
-
indexSpace
@POST @Path("space/{code}") @Produces("application/json") public jakarta.ws.rs.core.Response indexSpace(@PathParam("code") String code) Triggers the reindexation of a specific space and all its descendant items.- Parameters:
code- the space code- Returns:
- response containing success message or error details
-
clearIndex
@POST @Path("clear") @Produces("application/json") public jakarta.ws.rs.core.Response clearIndex()Clears the entire index asynchronously.- Returns:
- response containing success message or error details
-
getStatus
@GET @Path("status") @Produces("application/json") public jakarta.ws.rs.core.Response getStatus()Retrieves the current indexing status.- Returns:
- response containing the indexing status or error details
-
getIndexStatistics
@GET @Path("stats") @Produces("application/json") public jakarta.ws.rs.core.Response getIndexStatistics()Retrieves statistics about the current index.- Returns:
- response containing the index statistics or error details
-