Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

office365 microsoft graph full text search

Does the Microsoft Graph provide any full text search capability, in either v1.0 or beta?

Specifically I want to search over email body content. I have tried the following requests just to test out the different parts of the API:

https://graph.microsoft.com/v1.0/me/messages?$filter=body/content eq 'test'

with response message

The property 'Body' does not support filtering.

and request

https://graph.microsoft.com/v1.0/me/messages?$filter=startswith(subject,'test') 

with response message

'contains' and 'startswith' are not supported for filtering.  Use Search instead.

This last response mentions some Search function, but I can't find this mentioned in the documentation.

like image 501
eggm0n Avatar asked Oct 19 '22 16:10

eggm0n


1 Answers

The syntax for the Search function is https://graph.microsoft.com/v1.0/me/messages?$search=test

Some more info here: http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part2-url-conventions/odata-v4.0-errata02-os-part2-url-conventions-complete.html#_Toc406398167

like image 170
Marek Rycharski Avatar answered Oct 21 '22 17:10

Marek Rycharski