Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Microsoft graph api 如何修复MS Graph邮件正文搜索?_Microsoft Graph Api - Fatal编程技术网

Microsoft graph api 如何修复MS Graph邮件正文搜索?

Microsoft graph api 如何修复MS Graph邮件正文搜索?,microsoft-graph-api,Microsoft Graph Api,使用graph explorer按主题执行以下消息搜索,效果与预期一致: https://graph.microsoft.com/v1.0/me/messages?$search=%22subject%3Agoogle.com%3A443%2Fsearch%3Fq%3Da%2Btest*%22 但是,按正文搜索消息失败。此搜索与上一次搜索的唯一区别在于,主题替换为主体: https://graph.microsoft.com/v1.0/me/messages?$search=%22body%3

使用graph explorer按主题执行以下消息搜索,效果与预期一致:

https://graph.microsoft.com/v1.0/me/messages?$search=%22subject%3Agoogle.com%3A443%2Fsearch%3Fq%3Da%2Btest*%22
但是,按正文搜索消息失败。此搜索与上一次搜索的唯一区别在于,主题替换为主体:

https://graph.microsoft.com/v1.0/me/messages?$search=%22body%3Agoogle.com%3A443%2Fsearch%3Fq%3Da%2Btest*%22
我在第二次搜索中收到的错误是“发生内部服务器错误。操作失败,查询树中的POP太少”


这个搜索过去是有效的。如何修复它?

这是一个500错误-您无法使其正常工作。我会将此报告为错误。该错误似乎与搜索字符串中的第二个冒号有关

$search=“body:google.com:443/search?q=a+test*”
-这是500秒

$search=“body:google.com443/search?q=a+test*”
-这是200s

猜想

我怀疑搜索功能现在支持多个字段,因为以下查询按预期工作:

https://graph.microsoft.com/v1.0/me/messages?$search=%22subject%3Agoogle.com%3A443%2Fsearch%3Fq%3Da%2Btest*%22
https://graph.microsoft.com/v1.0/me/messages?$search=“body:Minerva主题:pilot”

这将中断您的查询,因为冒号似乎仅用于指定要搜索的字段

潜在解决方案

您可以将查询字符串拆分为多个部分,如下所示:

https://graph.microsoft.com/v1.0/me/messages?$search=“body:google.com和body:443/search?q=a+test*”


这是不够的,但可能适用于您的场景。

这是一个500错误-您无法完成此操作。我会将此报告为错误。该错误似乎与搜索字符串中的第二个冒号有关

$search=“body:google.com:443/search?q=a+test*”
-这是500秒

$search=“body:google.com443/search?q=a+test*”
-这是200s

猜想

我怀疑搜索功能现在支持多个字段,因为以下查询按预期工作:

https://graph.microsoft.com/v1.0/me/messages?$search=%22subject%3Agoogle.com%3A443%2Fsearch%3Fq%3Da%2Btest*%22
https://graph.microsoft.com/v1.0/me/messages?$search=“body:Minerva主题:pilot”

这将中断您的查询,因为冒号似乎仅用于指定要搜索的字段

潜在解决方案

您可以将查询字符串拆分为多个部分,如下所示:

https://graph.microsoft.com/v1.0/me/messages?$search=“body:google.com和body:443/search?q=a+test*”


这还不够,但可能适用于您的场景。

谢谢@Michael。你认为什么时候能解决这个问题?我们将此作为产品发布的一部分。@user10771554我还没有听到关于此问题状态的回复。我无法猜测是否/何时会进行修复。@MichaelMainer对此有任何更新吗?我们迫切需要修复一个依赖于此API的集成。@viv,我没有任何更新。“你也经历过同样的行为吗?”迈克尔迈纳。我们已经在graph explorer中对此进行了测试,得到了与以前相同的结果。谢谢@Michael。你认为什么时候能解决这个问题?我们将此作为产品发布的一部分。@user10771554我还没有听到关于此问题状态的回复。我无法猜测是否/何时会进行修复。@MichaelMainer对此有任何更新吗?我们迫切需要修复一个依赖于此API的集成。@viv,我没有任何更新。“你也经历过同样的行为吗?”迈克尔迈纳。我们在graph explorer中对此进行了测试,得到了与以前相同的结果。