MS Graph SharePoint sites search parameter

%3CLINGO-SUB%20id%3D%22lingo-sub-2006029%22%20slang%3D%22en-US%22%3EMS%20Graph%20SharePoint%20sites%20search%20parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2006029%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20search%20parameter%20for%20SharePoint%20sites%20in%20MS%20Graph%20yields%20unexpected%20results.%20When%20I%20enter%20the%20search%20term%20%22Company%22%20for%20instance%2C%20I%20get%20a%20certain%20number%20of%20sites%20whose%20names%20or%20displayNames%20do%20not%20contain%20this%20term.%20The%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fquery-parameters%23search-parameter%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E%26nbsp%3Bspecifies%20the%20search%20properties%20for%20message%20collections%20and%20users%2C%20but%20not%20for%20SharePoint%20sites.%3CBR%20%2F%3E%3CBR%20%2F%3EI'd%20guess%20name%20and%20displayName%20are%20searched%20properties%20(seems%20to%20be%20confirmed%20when%20I%20test%20this)%2C%20but%20I'd%20like%20to%20know%20what%20additional%20properties%20are%20searched.%20The%20properties%20I%20get%20back%20in%20the%20results%20don't%20contain%20the%20search%20term%2C%20so%20there%20must%20be%20at%20least%20one%20additional%20property%20that%20is%20searched.%3CBR%20%2F%3E%3CBR%20%2F%3EExample%20query%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fsites%3Fsearch%3D*Company*%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fsites%3Fsearch%3D*Company*%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EExample%20result%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22createdDateTime%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%222019-05-08T11%3A24%3A30Z%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22description%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3CINTENTIONALLY%20left%3D%22%22%20blank%3D%22%22%3E%3C%2FINTENTIONALLY%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22id%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3CINTENTIONALLY%20left%3D%22%22%20blank%3D%22%22%3E%3C%2FINTENTIONALLY%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22lastModifiedDateTime%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%222019-05-08T11%3A32%3A39Z%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22name%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3CINTENTIONALLY%20left%3D%22%22%20blank%3D%22%22%3E%3C%2FINTENTIONALLY%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22webUrl%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3CINTENTIONALLY%20left%3D%22%22%20blank%3D%22%22%3E%3C%2FINTENTIONALLY%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22displayName%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3CINTENTIONALLY%20left%3D%22%22%20blank%3D%22%22%3E%3C%2FINTENTIONALLY%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%2C%3CBR%20%2F%3E%3CBR%20%2F%3ENone%20of%20the%20blank%20properties%20contained%20%22Company%22%2C%20yet%20the%20site%20is%20returned%20for%20this%20search%20query.%20If%20anyone%20knows%20why%2C%20I'd%20love%20to%20know.%20Thanks%20in%20advance!%3CBR%20%2F%3E%3CBR%20%2F%3EKind%20regards%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EDouwe%20Kerstens%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
New Contributor

Greetings,

 

 

The search parameter for SharePoint sites in MS Graph yields unexpected results. When I enter the search term "Company" for instance, I get a certain number of sites whose names or displayNames do not contain this term. The documentation specifies the search properties for message collections and users, but not for SharePoint sites.

I'd guess name and displayName are searched properties (seems to be confirmed when I test this), but I'd like to know what additional properties are searched. The properties I get back in the results don't contain the search term, so there must be at least one additional property that is searched.

Example query:

https://graph.microsoft.com/v1.0/sites?search=*Company*

Example result:

{
"createdDateTime": "2019-05-08T11:24:30Z",
"description": <intentionally left blank>
"id": <intentionally left blank>
"lastModifiedDateTime": "2019-05-08T11:32:39Z",
"name": <intentionally left blank>
"webUrl": <intentionally left blank>
"displayName": <intentionally left blank>
},

None of the blank properties contained "Company", yet the site is returned for this search query. If anyone knows why, I'd love to know. Thanks in advance!

Kind regards,
Douwe Kerstens
0 Replies