Search code examples
powershellrankingsharepoint-online

Unable to change the Ranking Model used in SharePoint Online


I'm in a SharePoint Online tenancy that has an Office 365 Business Essential license. As I understand, the managing of the Ranking Model is done through the SharePoint Online Management Shell. I've downloaded the application and am able to login into our tenancy without error.

Everything I've found online to help me either change or even check the configuration of the Ranking Model results in an error that the term is not recognized as the name of a cmdlet.

Example: https://yuriburger.net/2011/08/25/changing-sharepoint-2010-search-ranking-model/

States I can check which models are registered with our Search Service Application by entering the following cmdlet.

Get-SPEnterpriseSearchRankingModel -SearchApplication "Search Service Application"

I receive the following error.

*Get-SPEnterpriseSearchRankingModel : The term 'Get-SPEnterpriseSearchRankingModel' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-SPEnterpriseSearchRankingModel -SearchApplication "Search Service Applicatio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-SPEnterpriseSearchRankingMo
   del:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException*

In addition, if I enter "Help" it provides a list of available cmdlets, the cmdlets the documentation I find aren't ever listed. If I try to enter a help Get-SPEnterpriseSearchRankingModel or other recommended cmdlets, I receive a stackoverflow error message and the Shell module crashes.

Am I getting these results because of the limitations of the Business Essentials license or do I just not have something installed?


Solution

  • Sharepoint Online doesn't support that cmdlet. See list of available cmdlets: https://technet.microsoft.com/en-us/library/fp161364.aspx

    In fact, there are very few PowerShell cmdlets for Sharepoint Online. This is probably due to the fact that it's a lot more complicated to write cmdlets for the server-infrastructure in Azure/O365 vs. on-premise Exchange 2013 with direct database-access.

    See this article for comparison between Sharepoint 2013 and Sharepoint Online. It's from 2013, but looking at the cmdlets-list on TechNet, it doesn't look like much has changed: https://blog.blksthl.com/2013/01/15/sharepoint-2013-powershell-cmdlets-listed-onprem-vs-online/#365

    Looks like you would have to do this using the Admin Center (GUI).