Skip to main content
Hitachi Vantara Knowledge

Working with saved queries

The HCP Search Console lets you save the queries you create so you can run them again at any time. Saving a query saves the criteria only, not the search results. Each time you run a saved query, you get a new set of returned objects.

You can publish a feed for a saved query. The feed makes regularly updated query results available to users of the web site where it’s published.

This chapter provides instructions for saving queries and then viewing, running, editing, deleting, and publishing feeds for them.

Saving a query

You can save all three types of queries: simple, structured, and advanced. Queries you save while one search facility is active are not available while another facility is active.

Procedure

  1. On the Simple Search, Structured Search, or Advanced Search page, specify the query criteria.

  2. Click Search.

  3. (Optional) Select filters to apply to the query results.

    The filters you apply to the search results are saved along with the query.
  4. In the save as field, type a name for the query.

    Query names must be from one through 500 characters long and cannot contain single quotation marks ('), double quotation marks ("), or backslashes (\). Certain strings that are used internally by HCP are reserved and cannot be used as names as saved queries.
  5. If a query doesn’t return any objects, a field labeled Save this query as appears below the search criteria on the Search Results page.

  6. Click Save.

Viewing saved queries

When you save a query, the Search Console lists it on the Saved Queries page. From this page, you can run, edit, or delete the query, as well as publish it as a feed.

GUID-F64CA658-D217-4ACB-A203-4AF65D09EE3B-low.png

Running a saved query

Procedure

  1. Click the Saved Queries tab.

  2. On the Saved Queries page, click the run control (GUID-EEF8F890-BB87-423F-8792-71C381477956-low.png) for the query you want to run.

Results

The Search Results page for a saved query shows the name of the query.
NoteWhen you run a saved query, the save as field on the Search Results page shows the name of that query. If you edit the query and then click Save without changing the query name, the modified query overwrites the previous version.

Editing a saved query

  1. Click the Saved Queries tab.

  2. On the Saved Queries page, click the edit control (GUID-7DA48C14-8B50-4AAB-B319-E8C5F9770D3F-low.png) for the query you want to edit.

    The Console displays the page on which the query was created. For example, if you created a query for a simple search, the Console displays the Simple Search page.
  3. Change the query criteria as needed.

  4. Click Query to run the updated query.

    NoteWhen you deselect a filter, the query runs automatically.
  5. To display the save as field, click Search.

  6. In the save as field, type a name for the edited query.

  7. Click Save.

Publishing a feed for a saved query

You can publish both RSS and Atom feeds for saved queries.

Procedure

  1. Click the Saved Queries tab.

  2. On the Saved Queries page, click the RSS (GUID-E030C1D3-5D62-47A2-8FBE-B495774B799A-low.png) or Atom (GUID-3E1C371A-BA43-4CD6-8E66-4A3A72E29F28-low.png) control for the query for which you want to create the feed.

    The window displays a browser-specific page for publishing a feed.
  3. Use the browser-specific procedure to publish the feed for the query.

Deleting a saved query

  1. Click the Saved Queries tab.

  2. On the Saved Queries page, click the delete control (GUID-5273F30B-B842-4761-8C0D-C37CFB2B9C0D-low.png) for the query you want to delete.

  3. In response to the confirming message, click OK.

 

  • Was this article helpful?