Managing list of exclusions
When indexing SharePoint files, you can specify the list of file locations that will be ignored. For that, in the list of sources, select SharePoint, then select Settings →SharePoint Excluded on the left, and click Add.
-
On the Filter tab, in the Filter field specify the objects (files or folders) to exclude:
To exclude a certain document, enter the page URL with no wildcard indicators (e.g. http://test.sharepoint.com/sites/documents/excluded%20document.docx
You can use wildcards anywhere in the exclusion pattern definition as follows:
- The asterisk character (*) matching any sequence of characters
- The question mark character (?) matching any single character
For example:
- http://test.sharepoint.com/sites/documents/\* will exclude all documents in the folder
- */Restricted Folder/* will exclude such folder in any site
NOTE: Exclusions are case-insensitive.
-
Optionally, enter full exclusion URL to verify the settings and click Test.
-
If needed, you can use metadata conditions to restrict when an exclusion filter should be applied. For that, click Condition tab and click Add. Then select how the exclusion conditions will work: it can check if metadata field of the document has any value, is not specified, or matches a specific metadata value.
Criteria Condition Comparison Compare a value in the document metadata field with the value set by condition. With this criteria selected, you will then need to specify: - Field name — document metadata field to check - Comparison — operator to use (for example, "does not contain") - Value — value to compare against For example, to exclude documents tagged with year 2018, set the condition as follows: - Field Name — DocYear - Comparison — equals - Value — 2018 Has any value Exclude the document if its metadata field has any value. With this criteria selected, specify Field Name. Has no values Exclude the document if metadata field value is not specified. With this criteria selected, specify Field Name. When finished, click Add.
-
Finally, click Save and close the window.