Changing The Name of The People Search Scope – Impossible?
Recently I investigated the following: A SharePoint 2010 site collection created with Finnish language pack and the default search scopes (“All Sites” and “People”) defined in the Search Service Application. The site collection has a search center created with Enterprise Search Center template. As the site is in Finnish, the customer would like the search scopes to be in Finnish as well to match the Finnish tabs in the search center UI and the overall Finnish UI experience. Not an unreasonable requirement.
Changing the “All Sites” to something incomprehensibly Finnish (“Kaikki sivustot”) works great. But changing “People” to “Henkilöt” fails big time as the people core results web part on the peopleresults.aspx page gives an error: “Scope in your query does not exist”. This worked just fine in MOSS 2007, so something must have changed in the 2010 release.
In the ULS logs I found indicators the a scoped named “People” was still looked for:
'Search Service Application 1', scope cache: scope 'People' (consumer 'a6769c24-a8d4-4f28-bf60-78ad6cdb7b4d') was not found; refreshing cache and retrying
The first thing was to go through the people core results web part for any setting to define the scope. There is the “location properties” section but bot settings were empty:
Typing the scope name “Henkilöt” in the scope field had no effect.
Next I started to wonder, how does the web part actually fetch the results. Especially when the Location is set to “None”. Using reflector shows that the web part has “DefaultSearchLocation” member which returns “LocalPeopleSearchIndex”. Thanks to Corey Roth, that is the internal name for “Local People Search Results” federated location. Which reminded me of the fact I once had known but since forgotten: SP2010 routes the even the local search queries through the federation layer, using “Local Search Results” and “Local People Search results” federated location.
Setting the ULS “SharePoint Server Search” category logging to verbose confirms the use of the federated location:
The next logical step was to go to settings of that federated location and try to specify the scope there. But there is no such setting:
With the “Henkilöt” scope set in the web part earlier, I went back to my verbose ULS logs to find the following Query category rows:
property 'scope' op 'DBOP_equal value Henkilöt
property 'scope' op 'DBOP_equal value People
So it seems that the People scope is hard-coded somewhere and gets appended to every query, overriding the web part setting. And it was not set in the federated location properties and I had no other clues, so I was forced to give up.
Then I remembered the old rule “if you cannot change it, create a workaround”. The query processor is the only place that requires the existence of the scope named “People”. Everywhere else I can use some other scope, and it has no effect on the query processor as the People scope is hard coded somewhere in the federated location settings. So instead of renaming the People scope, I created a shared copy of the scope (“Make copy as Shared” in Scopes page” and renamed the new scope as “Henkilöt”:
After that I went to site collection search settings and included the “Henkilöt” scope in the scope dropdown and remove the original People scope from the dropdown. Now the end users have only the “Henkilöt” scopes visible, and that scope is identical to the original People scope. The query processor still needs the People scope but it is available in the service application.
As a conclusion, there seems to be two options: the people search is not properly internationalized, or I am missing something obvious here. I hope it is the latter, so please prove me wrong and explain what I did not understand here.
Popularity: 2% [?]
Hi, I have some problems with search scopes but is with the mui, do you know if we can translate the scopes?, i have a multilingual site and the scope names are always in one language i cant translate the scopes name.
thank you.
I’ve been struggling with this same problem. Thanks for posting all of your detailed investigation. This convinces me to stop working on it and jump straight to the work-around you described. Thanks for saving me a lot of time!
useful content
hi
read through your blog. very nice page. can i get to know how you changed the scope to people?
i have norwegian website we are using norwegian language pack so i got people=personer.
so i want to change the word personer to something else, can you help here.
if i get any trouble to use the new scope i will use your this threat.
thanks a lot.
rizwan
riz.no
You save my time !
In my case I’ve got a very strange behavior, but your workaround is the solution:
my case:
I’ve got 2 farms
Farm A : Search service setup with 2 scopes : people and a copy of people
Farm B : Search service setup with 1 scope : people
I’ve made a backup of site collection content db on farm A and restored on Farm B
Site Collection on Farm B see only the second scope (copy) but the default people scope disapered..
finally I’ve removed all copy of people scpe, recreatye them and all is working !
Thanks a lot for your time to have had these things together on this blog. tree pruning
Sextreffen hat für Sie gesorgt. Es ist im Grunde die erste Anlaufstelle für alle, die in die Welt der Partnersuche einsteigen. Wenn Sie beim Online-Dating auf Nummer sicher gehen wollen, müssen Sie dort swipen, wo alle swipen.
British Milf Sex is is the best web place to look for pretty ladies who want casual contact with you
Hobby Ladies hat super heiße Escorts. Wenn Sie eine der heißesten Nächte Ihres Lebens haben wollen, liefert diese Seiten.
Shemale est facile à utiliser. Les nouveaux comptes doivent simplement s’inscrire, ajouter une photo de profil.
Sex Köln ist für kurvige Frauen aller Altersgruppen und ihre Verehrer gedacht. Es gibt etwa doppelt so viele Männer wie Frauen auf der Seite. Die Mehrheit der Frauen ist zwischen 18 und 24 Jahre alt. Der Beitritt zur Seite ist kostenlos, das Versenden von Nachrichten, die Suche nach Leuten, das Stöbern in anderen Mitgliedern und ein paar andere tolle Funktionen.
Avanture omogoča iskanje in iskanje seksi odraslih uporabnikov, ki imajo enake skrivne želje kot ti. Stran članom ponuja tudi swing, bondage, fetiše, dominacijo, podrejanje in še veliko več.
Sex Mainz ist für Menschen, die auf der Suche nach einem aufregenden Date oder einem aufregenden Online-Sex-Chat sind. Sie können sich hier anonym anmelden, was natürlich nützlich ist, wenn Sie Ihre Online-Abenteuer vor Ihrem Partner oder Ihrer Familie geheim halten wollen.