Filters¶
For none Mercury installations tenant properties can be configured using PowerShell.
Warning
You must be part of the Owners group of the tenant or site app catalog to set the properties.
Filters are used to allow alias' of complex proeprties used in the SharePoint search admin center for property values in the webpart.
In the filters, query builder and template mappings when 'Advanced' or 'Customer Name' is selected in the configuration type the configured filters will show for the selected mode.
| Property | Description |
|---|---|
| ID | Unique GUID for the filter. |
| Name | The name of the filter to be displayed to the user. |
| Alias | The alias of the property, this should match what is configured in the SharePoint search config. |
| Mode | Which type the filter relates to. |
| Sortable | If the property can be used to sort against. |
| Data Type | The type of filter, depending on selection this displays different options in filters display templates. |
PowerShell¶
Before adding the properties ensure you have PnP PowerShell installed: PnpPowershell
Connect to your tenant, run:
If you are connecting to the site app catalog change the URL to the site.
- Copy the below JSON into your preferred editor.
- Replace add the values for each property
- To add multiple values copy the first item including the {} and add comma after the closing }. Then paste the first item after the comma.
- Copy the below into the same editor and replace the everything between the "" for the value with the above.
- Change the Scope to Site or Tenant depending if you are adding the property to the site or tenant app catalog.
- Copy the new value, paste into your terminal and run the command.