Class SearchObject
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.restapi.server.management.SearchObject
- Since:
- 2025.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSearch
(String nxql, Long pageSize) Check discrepancies between search indexes.protected Duration
computeRemainingDuration
(long timeout, long start) doIndexing
(String query) Performs indexing on documents matching the optional NXQL query on the default repository.doIndexingOnDocument
(String documentId) Performs indexing on the given document and its children.void
Executes a refresh on document index of a given repository.void
Wait for indexing and other services only for testing purpose.protected Map
<String, Serializable> extractResultInfo
(SearchIndex searchIndex, String nxql, long pageSize) protected BulkStatus
performIndexing
(String query) Performs indexing on documents matching the optional NXQL query.Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Field Details
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
DEFAULT_CHECK_SEARCH_NXQL
- See Also:
-
DEFAULT_CHECK_SEARCH_PAGE_SIZE
-
CHECK_SEARCH_NXQL_PP
- See Also:
-
DEFAULT_TIMEOUT_SECONDS
-
-
Constructor Details
-
SearchObject
public SearchObject()
-
-
Method Details
-
doIndexing
Performs indexing on documents matching the optional NXQL query on the default repository. An empty query means reindex all using a new index. -
doIndexingOnDocument
@POST @Path("{documentId}/reindex") public BulkStatus doIndexingOnDocument(@PathParam("documentId") String documentId) Performs indexing on the given document and its children.- Parameters:
documentId
- the id of the document that will be indexed and his children recursively
-
doRefresh
@POST @Path("refresh") public void doRefresh()Executes a refresh on document index of a given repository. -
performIndexing
Performs indexing on documents matching the optional NXQL query. -
checkSearch
@GET @Path("checkSearch") public String checkSearch(@QueryParam("nxql") String nxql, @QueryParam("pageSize") Long pageSize) Check discrepancies between search indexes. -
extractResultInfo
protected Map<String,Serializable> extractResultInfo(SearchIndex searchIndex, String nxql, long pageSize) -
doWait
@POST @Path("wait") public void doWait(@QueryParam("waitForAudit") boolean waitForAudit, @QueryParam("waitForBulkService") boolean waitForBulkService, @QueryParam("refresh") boolean refresh, @QueryParam("timeoutSecond") Integer timeoutSecond) Wait for indexing and other services only for testing purpose. Returns no content (204) on success, timeout (408) or errors (50x) -
computeRemainingDuration
-