This documentation is for WSO2 Governance Registry 5.1.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

Also see Xpath Query Search for a more enhanced way of searching for resources by name, registry location or by media type.

All data found in the Registry can be searched in the WSO2 Governance Registry interface. Search can be refined by resource name, created date range, updated date range, created user, updated user, Associations, tags, comments, property name, property value, and Media type.

  • To search for matches containing a specific pattern, use the "%" symbol. Please note that this is only for "resource name", "created by", "updated by" and "property value" fields.
  • To enter more than one term in tags, use comma (",") as the separator. To enter more than one term in keywords, use space (" ") as the separator.
  • You can also search for a resource using a "tag" search. See Searching by Tags.

In the previous versions of WSO2 G-Reg, the search function was based on database queries, and only the content search of it was based on Apache Solr  (version 1.4.1). With the new improvements in WSO2 G-Reg 5.1.0all database queries are removed in the search function. Now, all search queries are done based on Apache Solr (version 5.2.1). Basic functionality in the registry indexing is not changed. However, you need to consider the following with this update. 

  • Apache Solr indexing mechanism has changed from Solr version 4.x above versions. Therefore, you need to re-index before using this update since Solr 4.x and above versions will not read the indexes of Solr 1.4.

  • Latest Apache Solr versions require Java 7 or above versions to run the server. Therefore, since the Solr is embedded within the G-Reg server, you need to build and run the server on Java 7 or above versions.

Follow the instructions below to find a necessary resource in the Registry.

Steps to search 

  1. Sign in. Enter your user name and password to log on to the Management Console.
  2. Click the "Main" button to access the "Resources" menu then click "Search" under "Resources". 
  3. The "Search" window appears.

    Details on searching the registry:

    • Resource Name
    • Keywords - Various keywords found in the resource content. Refer Content Search section. 
    • Created Date Range - The date when a resource was created and the negation of the date range as well.
    • Updated Date Range - The date when a resource was updated and the negation of the date range as well.
    • Updated by - The author of a resource updating and the negation of the author as well.
    • Created by - The author of a resource creation and the negation of the author as well.
    • Tags
    • Comment
    • Association Type - Type of the Association (E.g. - usedBy) 
    • Association Destination - The path of the associated resource. 
    • Property Name
    • Property Value
    • Media Type - Media type of the resource and the negation of the type.

    For more information about Media types, please visit the Adding a Resource page.

    Created or updated dates can be either entered in the format of MM/DD/YYYY or use the date picker provided in the user interface.

  4. Click on the "Search" button.

  5. The results will be displayed in the "Search" window.

  6. From here you can generate PDF, HTML and Excel reports. Click on the the relevant links. 

    To set new search parameters, click on the "Load" button and you'll be taken to the window described above.

Content search

Resources found in the registry can be searched by content through Key Words search option. Text appearing in the resource content can be used to find the resource using this feature. Simply enter the text you are looking for in Key Words and do a search, resources that contain the text you entered will be listed as search results.

 Words entered by the user will be matched as whole words in the resource content. Resources that have one or more words entered under Key Words above will appear in search results. Governance Registry currently supports searching inside resources containing plain text, XML content (including WSDLs, Schemas, Policies, etc.), PDF files, Microsoft Word documents, Microsoft Excel documents and Microsoft PowerPoint documents. Additional indexers for other media types could be added with registry.xml defined in  Configuration for Indexing. A space would act as an OR operator whereas "&&" would act as an AND operator. 

 See also URL Accessibility For Searches Sample.

  • No labels