java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.resources.AbstractResource
com.atlassian.confluence.plugins.rest.jackson2.resources.IndexResource

@Path("/index") @Produces("application/json;charset=UTF-8") public class IndexResource extends AbstractResource
  • Constructor Details

    • IndexResource

      @Deprecated(since="8.3.0", forRemoval=true) public IndexResource(IndexManager indexManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 8.3.0
    • IndexResource

      @Inject public IndexResource(IndexManager indexManager, ReIndexService reIndexService)
      Since:
      8.3.0
  • Method Details

    • reindex

      @Path("/reindex") @Consumes("application/json") @POST public javax.ws.rs.core.Response reindex(@QueryParam("option") List<String> options, @QueryParam("spaceKey") List<String> spaceKeys) throws InterruptedException
      Throws:
      InterruptedException
    • resetJob

      @Path("/resetjob") @Consumes("application/json") @PUT public javax.ws.rs.core.Response resetJob()
      This endpoint deletes the current reindex job
    • reIndexStatus

      @Path("/reindex") @GET public javax.ws.rs.core.Response reIndexStatus()
    • unIndexAll

      @Path("/unindex") @Consumes("application/json") @POST public javax.ws.rs.core.Response unIndexAll()