Hello!
I know search for people is still in beta, but we are preparing to migrate to Graph Search API.
We got an issue, when we are searching and the search query is in the email field, then there is a unicode character before and after the word, as if it is supposed to be used for highlighting. The unicode characters seems to be U+E001 and U+E002.
Here is an example:
POST https://graph.microsoft.com/beta/search/query
BODY
{
"requests": [
{
"entityTypes": [
"person"
],
"query": {
"queryString": "jonas"
},
"Fields": [
"DisplayName",
"EmailAddresses"
],
"Provenances": [
"Directory"
]
}
]
}
Response
{
"value": [
{
"hitsContainers": [
{
"hits": [
{
"hitId": "",
"rank": 1,
"summary": "",
"resource": {
"@odata.type": "#microsoft.graph.person",
"displayName": "Jonas",
"emailAddresses": [
{
"address": "jonas.******@company.se",
"rank": 1
}
]
}
}
],
"total": 1,
"moreResultsAvailable": false
}
]
}
],
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.searchResponse)"
}
I ask because I can not find any information about this. Are they supposed to be used for highlight? If so, should we expect them to be in other fields too? (I have not seen them in any other field).
Right now, we need to handle these characters to be able to display the email address correct.
Sincerely,
Jonas