DriveItem search not working properly

Alexander Obolentsev 0 Reputation points
2025-02-19T14:16:30.27+00:00

I used the following search API and got an empty result, but in fact there are files that match the search criteria.

/me/drive/root/search(q='{search-text}')

  1. /me/drive/root/search(q='Doc') -> I got files
  2. /me/drive/root/search(q='Docu') -> I got empty result
  3. /me/drive/root/search(q='Docum') -> I got empty result
  4. /me/drive/root/search(q='Document') -> I got files

On my personal drive I have files like this, for example: Document.pdf, Document 1.pdf, ...

Could you please tell me what the problem is or what I am doing wrong?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,108 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.