Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18360

Expose Elasticsearch indexing via automation

    XMLWordPrintable

    Details

      Description

      It will be interesting to expose the following indexing operations via REST:

      • Elasticsearch.Index with params:
        • without param: drop index + reindex all
          curl -X POST -H "Content-Type: application/json+nxrequest" -u Administrator:Administrator -d '{"params":{},"context":{}}' http://localhost:8080/nuxeo/site/automation/Elasticsearch.Index
          
        • with NXQL string: reindex matching documents
        • with a document: remove doc and children from index then reindex the doc + children
      • Elasticsearch.WaitForIndexing with params:
        • timeout in second
        • a refresh flag to ask to perform a refresh once indexing is done
          curl -X POST -H "Content-Type: application/json+nxrequest" -u Administrator:Administrator -d '{"params":{"timeoutSecond": "3600", "refresh": "true"},"context":{}}' http://localhost:8080/nuxeo/site/automation/Elasticsearch.WaitForIndexing
          


      Elasticsearch indexing operation are now available from automation in addition to the Admin center.
      Using a REST call you can now:

      • Re-index an entire repository
      • Re-index document that match an NXQL query
      • Re-index document and its children
      • Wait for indexing and perform an index refresh

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.