使用特定语言(覆盖用户语言)的搜索结果 [英] Search results in a specific language (overide user language)

查看:90
本文介绍了使用特定语言(覆盖用户语言)的搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个搜索中心,它工作得很好,但是索引文档是法文.

I have a Search Center wich is working pretty well but the indexed documents are in french.

大多数用户的浏览器是法语,但是有些浏览器是英语的,并且会得到奇怪的结果.

Most of the user's browsers are in french but some have their IE in english and they get strange results.

如果我们寻找modèle":
-具有法国通勤者"的人;将获得数百个结果
-拥有英语计算机"的人;将获得3个结果"

If we look for "modèle":
- Someone with a "french comuter" will get hundreds of results
- Someone with an "english computer" will get 3 results"

我希望搜索结果对用户的语言不敏感.
我不想让所有用户都更改其用户个人资料.

I'd like the search result to be insensitive to the user's language.
I don't want to ask all users to change their user profiles.

我创建了一个自定义搜索结果源:

I've created a custom search result source:

{searchTerms}路径:http://intranet.abc.net/GD/Documents

{searchTerms} Path:http://intranet.abc.net/GD/Documents

您能帮我用法语执行所有搜索吗?
我不知道它是否必须是Webpart的参数或在搜索结果中...

Can-you help me to perform all search in french?
I don't know If It has to be a parameter of a webpart or in the search result...

谢谢

François

PS:SP2013 Enterprise内部部署

PS: SP2013 Enterprise on-prem

推荐答案

作为描述,您希望将默认查询语言设置为法语,以便在SharePoint 2013中进行搜索.

存在一个名为"DataProviderJSON"的隐藏属性.在搜索结果Web部件中.该属性的值之一被称为"FallbackLanguage".  其默认设置为"-1".您可以导出搜索Web部件,然后 使用记事本打开它,然后将值设置为1036.之后,将该Web部件上载到SharePoint,然后使用该Web部件进行搜索.

As your description, you want to set the default query language as French for search in SharePoint 2013.

There is a hidden property called "DataProviderJSON" in the Search Results Web Part. One of the values of this property is called "FallbackLanguage"  which by default is set to "-1". You can export the search web part and open it using Notepad then set the value to 1036. After that, upload the web part into SharePoint, and use the web part to search.

有关语言ID的更多信息,您可以参考:

More information about language IDs, you can refer to:

https://technet.microsoft.com/en-us/library/ff463597.aspx

谢谢

Wendy


这篇关于使用特定语言(覆盖用户语言)的搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆