-
Type: User story
-
Status: Open
-
Priority: Critical
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Admin Center
-
Epic Link:
-
Tags:
-
Sprint:UI - 2024-6
As a system administrator, I can reindex the documents returned by a NXQL query
[REINDEX-NXQL]
Context:
ES endpoint https://doc.nuxeo.com/rest-api/1/elasticsearch-endpoint/
AC
Within the elasticsearch reindex menu entry
An option is provided to reindex the documents based of a NXQL query.
Tab name: "NXQL Query"
Title: "Reindex the results of a NXQL query"
Parameters:
- NXQL Query
- Help text: See [NXQL documentation](links to https://doc.nuxeo.com/nxdoc/nxql/ in a new page) for available options
- Default value:
SELECT * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0 AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND dc:title = 'A document to reindex'
Errors are handled so that when a problem is detected, an error message is displayed. Sample errors that could happen:
- Invalid query
- Error returned by the server: should display a meaningful error message, e.g. "An error happened, please check server logs for details."
Parameters are kept when an error happens so that I can fix any mistake easily and try again
When a query is provided:
- If document count is 0, no reindexing is triggered and a message is displayed "No document matches that query. Please try again with a different query."
- Confirmation is required if results count > 0, see [CONFIRMATION-REQUIRED] and [EXPLAINER-ES-REINDEXING-NXQL]
- A confirmation is displayed with the outcome, e.g. "Document reindexing request launched. Bulk action id: [NUMBER]."
- A "Go back" action allows me to go launch another request. Fields have been reset so that I don't launch the same request twice by accident.