Content Sources¶
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.
Content sources are friendly named SharePoint result sources that relate to the type that is being searched for.
When in the webpart configuration if a content source has been added for the selected mode the source dropdown will show the name of the content source in the dropdown along with 'Default'.
| Property | Description |
|---|---|
| ID | The result source Id from SharePoint. |
| Name | The name of the source, this should indicate to the end user what the content source is. |
| Description | Describe what the source is searching for for content editors. |
| Type | The type the result source relates to |
| Geo Location | The Geo Location the result source is configured in. Only avaiable for multi geo tenants |
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.