JBoss.orgCommunity Documentation

Manage queries

The function enables you to add, edit and delete queries by going to Advanced Configuration --> Manage Queries.

Add a new query

  1. Open the Add Query form by clicking the Add Query button in the Manage Queries page.

  2. Enter a query name into the Query Name field.

  3. Select the query type from the drop-down Query Type menu.

  4. Enter the statement for the query that must be unique.

  5. Check or uncheck the Enable Cache Results option. If you tick this checkbox, for the first time you use this query to search, the result will be cached. For the second time you search using this query, it will show the cached results. After 45 minutes, the cache will be removed.

    For example, you have the query Test with statement //element (*, nt:file). In the File Explorer, you have a nt:file document named File1. When you execute the query Test, only document File1 will be shown. After that, create a nt:file document named File2 and execute query Test, only document File2 document will be listed. After 45 minutes, the cache will be removed. When you execute the query Test, the documents File1 and File2 will be listed.

  6. Select permissions for a group that can use this query by clicking green plus.

  7. Click Save to finish adding a new query.

Edit a query

  1. Click pencil corresponding to the query you want to edit. The Edit Query form will appear.

  2. Edit the properties of the selected query.

  3. Click Save to accept all changes.

Delete a query

  1. Click trash can corresponding to the query you want to delete.

  2. Click OK in the confirmation message to accept your deletion, or Cancel to discard this action.