Class IndexationRest

java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.rs.AbstractRestEndpoint
fr.paris.lutece.plugins.wiki.modules.ai.rs.IndexationRest

@RequestScoped @Path("wiki/ai/indexation") public class IndexationRest extends AbstractRestEndpoint
REST endpoint for managing wiki AI indexation operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    Clears the entire index asynchronously.
    jakarta.ws.rs.core.Response
    Retrieves statistics about the current index.
    jakarta.ws.rs.core.Response
    Retrieves the current indexing status.
    jakarta.ws.rs.core.Response
    Triggers a full reindexation of all wiki content.
    jakarta.ws.rs.core.Response
    Triggers the reindexation of a specific space and all its descendant items.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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