-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Elasticsearch
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
- without param: drop index + reindex all
- 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
- is required by
-
NXP-18355 Improve bench coverage
- Resolved