Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Supported search queries with OneDrive

What values the 'search-text' can take in the following query?

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

From experiments, it looks like the {search-text} is a single string that would be searched in the contents of the file. Meaning if the search text is a multiple word sentence then entire sentence is searched rather than individual works in the sentence? Is this right assumption?

Eg: Say If I would like to search 'word1' 'word2' ... 'wordn' then it looks like search query should be issued for all the n words individually. Is there a format/way in which we can search all the n words in single query?

Thanks, /Girish BK

like image 305
user3506401 Avatar asked Oct 18 '22 15:10

user3506401


1 Answers

Searching is phrase based and does not support wildcards or similar search augmentations.

For example, the query /me/drive/search(q='pizza shop') would search for files that contain the phrase "pizza shop" in a filename, a file's metadata, and a file's content.

like image 198
Marc LaFleur Avatar answered Oct 21 '22 07:10

Marc LaFleur