Class ElasticsearchObject
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.restapi.server.jaxrs.management.ElasticsearchObject
Endpoint to manage Elasticsearch.
- Since:
- 11.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSearch(String nxql, Long pageSize) Check discrepancies between elastic and repository search.voiddoFlush()Executes an ES flush on document index of a given repository.doIndexing(String query, Long queryLimit) Performs an ES indexing on documents matching the optional NXQL query.doIndexingOnDocument(String documentId, Long queryLimit) Performs an ES indexing on the given document and his children.voidExecutes an ES optimize on document index of a given repository.protected Map<String,Serializable> extractResultInfo(String ppName, String nxql, long pageSize) protected BulkStatusperformIndexing(String query) Deprecated, for removal: This API element is subject to removal in a future version.protected BulkStatusperformIndexing(String query, long queryLimit) Performs an ES 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
-
GET_ALL_DOCUMENTS_QUERY
- See Also:
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
DEFAULT_CHECK_SEARCH_NXQL
- See Also:
-
DEFAULT_CHECK_SEARCH_PAGE_SIZE
-
-
Constructor Details
-
ElasticsearchObject
public ElasticsearchObject()
-
-
Method Details
-
doIndexing
Performs an ES indexing on documents matching the optional NXQL query.- See Also:
-
doIndexingOnDocument
Performs an ES indexing on the given document and his children.- Parameters:
documentId- the id of the document that will be indexed and his children recursively- See Also:
-
doFlush
public void doFlush()Executes an ES flush on document index of a given repository. -
doOptimize
public void doOptimize()Executes an ES optimize on document index of a given repository. -
checkSearch
Check discrepancies between elastic and repository search.- Since:
- 2023.7
-
extractResultInfo
-
performIndexing
Deprecated, for removal: This API element is subject to removal in a future version.since 2023.36 useperformIndexing(String, long)instead -
performIndexing
Performs an ES indexing on documents matching the optional NXQL query.- Parameters:
query- the NXQL query that documents must match to be indexed, can benullorempty, in this case all documents of the given repository will be indexedGET_ALL_DOCUMENTS_QUERYqueryLimit- the limit of documents to index,-1for no limit, not taken into account for full reindex- Returns:
- the
BulkStatusof the ES indexing - Since:
- 2023.36
-
performIndexing(String, long)instead