Class ElasticsearchObject

    • Field Detail

      • MAPPER

        protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
      • DEFAULT_CHECK_SEARCH_PAGE_SIZE

        protected static final Long DEFAULT_CHECK_SEARCH_PAGE_SIZE
    • Constructor Detail

      • ElasticsearchObject

        public ElasticsearchObject()
    • Method Detail

      • doIndexingOnDocument

        public BulkStatus doIndexingOnDocument​(String documentId)
        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:
        performIndexing(String)
      • 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

        public String checkSearch​(String nxql,
                                  Long pageSize)
        Check discrepancies between elastic and repository search.
        Since:
        2023.7
      • performIndexing

        protected BulkStatus performIndexing​(String query)
        Performs an ES indexing on documents matching the optional NXQL query.
        Parameters:
        query - the NXQL query that documents must match to be indexed, can be null or empty, in this case all documents of the given repository will be indexed GET_ALL_DOCUMENTS_QUERY
        Returns:
        the BulkStatus of the ES indexing