CentraSite 10.7 | CentraSite User’s Guide | Asset Management | Managing Assets through CentraSite Control | Searching the Asset Catalog | XQuery Search
 
XQuery Search
You can search for assets and supporting documents by specifying an XQuery search. There are two general approaches you can use to specify an XQuery search:
*Write an XQuery from scratch. This requires a good knowledge of the XQuery language.
*Define an advanced search, then switch to the XQuery tab. In this case, the equivalent XQuery code is displayed and you can adapt it to your requirements.
Note:
The results are displayed in an XML format, rather than as a list of matching assets and supporting documents.
*To search the catalog by XQuery
1. In CentraSite Control, go to Asset Catalog > Search.
This opens the Asset Search page.
2. To base your XQuery search on an advanced search, follow these steps:
a. Click the Advanced tab.
b. In the Types panel, choose an asset type from the drop-down list. This list contains the predefined and user-defined asset types currently available in CentraSite.
To specify multiple asset types, use the Add button to include additional rows. When you specify several asset types in this way, the search result will include assets from all of the chosen asset types.
To search across all asset types, select All Asset Types in the drop-down list.
You may use the chevron to expand or collapse the Types panel.
c. In the Criteria section, choose a searchable attribute from the first drop-down list. Depending on the data type of a chosen attribute, subsequent fields, for example, operators, and text box fields varies widely.
To specify multiple attributes, use the Add button to include additional rows. When you specify several attributes in this way, the search result will include assets that match all of the chosen attributes.
You may use the chevron to expand or collapse the Criteria panel.
d. Click Save.
3. Click the XQuery tab.
4. Type an XQuery code or modify an XQuery code derived from existing search criteria in the accompanying text box.
5. Click Search.
CentraSite displays assets that match the specified XQuery code.
The search results are shown as a single XML document containing assets that match the XQuery definition.