Forum Discussion
Michèl Dings
Jan 08, 2019Copper Contributor
SPFx react-search-refiners webpart | No results from teamsites displayed
I'm using the SPFx SPFx react-search-refiners webpart and I don't know if this is a bug or this is due to SharePoint restrictions. When I enter a KQL query I supose to get the same results as I u...
Matti Paukkonen
Jan 09, 2019Iron Contributor
Are Groups you are searching for set as "Private"? By default Search REST API is not including Private Groups on search results.
Web Part is not including EnableDynamicGroups property on search query. So it is not a bug, it's just feature missing.
- Michèl DingsJan 09, 2019Copper Contributor
Thanks for the information. I'm will check the EnableDynamicGroups property.
- Michèl DingsJan 09, 2019Copper Contributor
I added the following lines of code to the SearchServices.ts file:
searchQuery.Properties = [{Name: "EnableDynamicGroups",Value: {BoolVal: true,QueryPropertyValueTypeIndex: 3}}]And it is working now. Thanks Matti Paukkonen for pointing me in the right direction.- Matti PaukkonenJan 09, 2019Iron Contributor
Great!
This change should be committed to the community repository also.