Forum Discussion
Microsoft Graph API Sharepoint Search
hpage910 I'm commenting to bring awareness to this issue. We ran into this exact same problem and incorrectly assumed it was the SDK we were using to make the api calls. However, when we decided to test it using the https://developer.microsoft.com/en-us/graph/graph-explorer we still ran into duplicate search results.
We uploaded a folder containing 10k unique text files (about 1kb each) to OneDrive using the OneDrive Windows Sync Client. We then gave it a few weeks to make sure everything synced across the graph api service.
The test files have a modified date of April 15th so we did a Modified Date Range query between April 10th - April 20th. The Graph API correctly identifies the correct "Total" of 10k documents in the response object, using pagination of 50 files per request it fetched 10k documents but when we analyzed the document ids in the request we were getting about 8,902 unique documents and 1,098 duplicates.
There are many people running into this issue and there is no clarity about a solution. Please Microsoft Support fix this. we need the api to be deterministic and accurate. We tried using the "trimDuplicates" property in the request, and adding a sort property to prevent it from sorting by relevancy and still the same results