Creating custom search queries

To help save time in locating a RAS asset in a repository you can use existing search queries or create and save new ones. Queries can be created by specifying the namespace, a profile or repository, or a property name.

Before you begin

About this task

To create a custom search query:

Procedure

  1. In the Asset Explorer view, click the Open Search dialog button search icon. The RAS Search page of the Search window opens.
    Note: You may need to enable the Reusable Asset Management capabilities in the Preferences window if the Asset Explorer view is not visible. (To set these capabilities, click Window > Preferences, expand Workbench, and click Capabilities.)
  2. Under Search using, click Query and click Choose. The Query Selection Dialog window opens.
  3. Click New to open the Query Builder Dialog window.
  4. Create the query in the Query Builder Dialog window.
    1. Type a name for the query in the Query Name field.
    2. Under Query Builder, select a profile and property to search from the Profile and Property lists. For example, if you wanted to query a profile name, you would select Default Profile as the profile and Profile as the property to search. Note that you select the asterisk (*) character from the Property list to include all properties.
    3. Select the attribute type to search for from the Attribute list.
    4. Select either contains or does not contain from the Contains list.
    5. Type the value you are searching for in the Value field.
    6. If all the fields are set, the Add button is enabled. Click Add to add the query to the table.
    7. Optional: To create additional, nested conditions for the query, do steps b. through f., select a value from the Nested list to indicate how the conditions are logically related, and then click Add. The Nested values are used to build nested search queries. They include And (both conditions true), Or (either condition true), Nand (both conditions false), and Nor (either condition false).
    8. Once you have completed your query, click OK. The Query Selection Dialog window opens with the new query listed.
  5. Click OK to return to the RAS Search page of the Search window. The query is added to the Query list.

Results

Now you can run this query any time you open the Search window once you specify the query and scope and click Search.
Note: Searching on Rational® XDE or DeveloperWorks repositories using queries is not fully supported. Nested search queries are treated as simple keyword searches and any nesting values are ignored.

What to do next


Feedback