elastic / connectors

Source code for all Elastic connectors, developed by the Search team at Elastic, and home of our Python connector development framework
https://www.elastic.co/guide/en/enterprise-search/master/index.html
Other
71 stars 126 forks source link

[SPO] Exclude "not allowed for search" objects #1359

Open llermaly opened 1 year ago

llermaly commented 1 year ago

Problem Description

Sharepoint allows to disable items from sharepoint search. I think we should align with this and not show this documents in Elasticsearch either.

Proposed Solution

Filter out the excluded documents. https://stackoverflow.com/questions/76787756/how-to-figure-out-if-search-enabled-in-sharepoint-using-the-api

Additional Context

The disable for search option is under Advanced settings:

image

This flag is exposed as NoCrawl through sharepoint rest API.

llermaly commented 1 year ago

https://learn.microsoft.com/en-us/search/?scope=graph&view=graph-rest-beta&terms=nocrawl