Use this guidance to configure simple and advanced search criteria in Outlook.
You can configure the search criteria presented when a user starts a search in Outlook. This configuration supports the content models, including data types, constraints, lists, regular expressions and other attributes.
You can configure navigation-sensitive simple and advanced searches based on the search location. Use the Custom simple search to configure a simple search, where the Outlook Integration includes the metadata fields in the search dynamically for the search term provided. Use the Custom advanced search to configure an advanced search, where the search form adapts dynamically so different fields are shown, depending on the navigation context of the user.
When a user starts a search, the Outlook Integration finds the best match for the metadata dialog. The <match> element uses the first rule that matches the attributes in the tag. If you are using multiple rules,
you should always start with the most specific rule first.
In the <match> element:
-
Define the match type. This can be a folder, type or aspect.
-
Define the match pattern. This can be the location of the folder (defined in xpath format), or it can be based on a defined model, type, or aspect.
See examples of how to use these search settings below.
-
Open Alfresco Share, and click Admin Tools on the toolbar.
-
Click Search Settings then Edit.
You can configure XML settings for Custom simple search, and Custom advanced search.
-
You can load and edit the default configuration template for each section by clicking Load default configuration template.
Here is the full list of metadata settings that you can configure:
| Section name | Key name | Description | Values |
match |
type |
Mandatory. Defines type of the attribute | folder, type, aspect |
pattern |
Mandatory. Path to the site or folder where custom metadata is applied | Example: Site: pattern="/app: company_home/st:sites/cm:qaext- standard-metadata"Folder: pattern="/app: company_home/st:sites/cm:qaext- custom-metadata/cm: documentLibrary/cm:numeric-metadata" |
|
target |
useTags |
Controls use of tags | true: tags are permittedfalse: tags are not permitted |
useText |
Controls use of full-text search | true: full text search permittedfalse: full text search not permitted |
|
property |
name |
Name of the custom property | Text format |
allowedValues |
List of permitted values. | Text format | |
allowedCategoryValues |
Path to the list of permitted values | Text format | |
ui |
multiline |
Controls use of multiple lines in a box | true: multiple lines are permittedfalse: multiple lines are not permitted |
-
To apply default search criteria for the whole repository, use this example:
<match pattern="/app:company_home/st:sites/cm:myexample-1-site-standard-search" > <target useTags="true" useText="true"> <property name="cm:title"/> <hr/> <property name="cm:description"> <ui multiline="true"/> </property> </target> </match>In this example, the only available child element is
<target>. In<target>you can specifyuseTagsanduseTextas attributes. In the example shown:- The Tags search field is enabled (
useTags="true") - The Text search field is enabled (
useTags="true")
The user sees a search dialog with several fields including
cm:titleandcm:description. This allows the user to search for documents and folders by title and description, as well as by tags, and through the full text of documents.The
cm:descriptionfield can contain multiple lines by setting<ui multiline="true"/>.The
<hr/>element adds a horizontal line to the search dialog.If no type information is present, the default
cm:contenttype is used for all nodes stored in Share. The<target>element can contain 0 or more child elements called<property>.In the
<property>tag:- Use the
nameattribute to set a valid model property likecm:title - Use the
<ui>child element to control how the fields are displayed in the search dialog
- The Tags search field is enabled (
-
To add numeric fields to the search dialog, use this example:
<match type="folder" pattern="/app:company_home/st:sites/cm:myexample-2-site-custom-metadata/cm:documentLibrary/cm:numeric-metadata" > <target> <property name="wpsmail-qa-ext:number-metadata-float" /> <property name="wpsmail-qa-ext:number-metadata-double" /> <property name="wpsmail-qa-ext:number-metadata-int" /> <property name="wpsmail-qa-ext:number-metadata-long" /> </target> </match>In this example, the user sees a different search dialog in the
numeric-metadatafolder (or its sub folders) on themyexample-2-sitesite. The dialog will contain four fields with custom numeric data in float, double, int and long format.If the above example is applied to the Custom advanced search configuration, the user sees the default search fields for any site or folder in the repository except in
myexample-2-site/custom-metadata/numeric-metadata.If the above example is applied to the Custom simple search configuration, the Outlook Integration uses the search criteria mentioned in the
<target>element only to find search results. -
To apply search criteria using an aspect, use this example:
<match type="aspect" pattern="cm:versionable"> <target useTags="true" useText="true"> <property name="cm:title"/> <hr/> <property name="cm:description"> <ui multiline="true"/> </property> </target> </match> -
To use wildcards, add the asterisk character in the folder path, for example:
<match pattern="/app:company_home/st:sites/*/cm:myexample-1-site-standard-search" > <target useTags="true" useText="true"> <property name="cm:title"/> <hr/> <property name="cm:description"> <ui multiline="true"/> </property> </target> </match>Starting from Outlook Integration 2.8.1, this rule allows you to assign the search configuration to every
myexample-1-site-standard-searchlocated under anyst:sites, and with any number of folders betweenst:sitesandmyexample-1-site-standard-search.Here is another example to show how the asterisk can be used in multiple locations:
<match pattern="/app:company_home/st:sites/*/cm:testfolder/*/cm:myexample-1-site-standard-search">You can also use the asterisk wildcard in this way:
<match pattern="/app:company_home/st:sites/cm:test*/cm:myexample-1-site-standard-search">Note
An exact match of the pattern without a wildcard takes priority over the wildcard pattern.
-
Click Apply to save your changes and restart Microsoft Outlook.
The template changes are applied.
If your XML isn't valid, you won't be allowed to save your settings, and you'll see an error message.
You can download the custom simple search and custom advanced search settings locally by clicking Download configuration.