将参数传递给搜索框 [英] Passing Parameters to Search box

查看:56
本文介绍了将参数传递给搜索框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前找不到类似的请求。有没有办法将参数(页面元数据列)值传递给搜索框,以便它在搜索结果中将元数据列值应用为精简程序。 

Couldn't find a similar request before. Is there a way to pass a parameter (page metadata column) value to the Search box so that it applies the metadata column value as a Refiner in the Search Results. 

对于上下文,我们的SharePoint网站中的所有页面都有一个业务单位托管元数据列。搜索配置为搜索可通过"优化"面板细化的整个站点。但是,用户不希望必须单击业务单位精简程序
面板作为获得他们想要的结果的附加步骤。他们希望结果根据业务单位自动显示结果。由于设置用户配置文件的方式,可能需要更多努力将业务单位映射到配置文件中的组织字段
。所有用户都从他们的业务部门主页开始,即使在搜索时也大部分都在他们的业务部门页面内,这引起了我的质疑。有没有办法将用户
所在页面的业务单位元数据列值传递给搜索,以便最初根据起点细化搜索结果。然后,如果用户想要在其业务范围之外进行搜索,则可以清除Refiner。

For context, all pages in our SharePoint site have an Business Unit managed metadata column. The Search is configured to search the entire site that can be refined through a Refinement panel. However users do not like to have to click the Business Unit refiner panel as an added step to get the results they want. They would prefer the results automatically display results based on their business unit. Because of the way user profiles are set up, it may be more effort to map the Business Unit to the Organization field in the profiles. All users do start at their Business Unit home page and largely stay within their Business Unit pages even when searching, which takes me to my question. Is there a way to pass the Business Unit metadata column value for the page the user is on to the Search so that the Search Results is initially refined based on the starting point. The user can then clear the Refiner if they want to search outside their Business area.

推荐答案

根据您的描述,我的理解是您想要根据您的业务单位列数据进行搜索,而无需点击您的优化
面板。

我的建议是你可以:


  1. 转到管理中心>管理服务应用程序>搜索服务应用程序>搜索架构,找到业务单位列
    的托管属性(如果找不到,则创建新的托管属性)。  


(由于您提到您站点中的所有页面都有业务单位列,我假设此列是您的站点列。所有站点列将自动
在完全爬网后生成托管属性)


  1. 转到该特定托管属性的设置,并确保选择"可查询"。 / span>
  2. 运行完全爬网
  3. 然后输入您的业务单位数据像"BusinessUnit(您的托管属性名称)"这样的查询:xxxxxx"

If I misunderstood your issue, please tell me.

祝你好运,

Allen Bai


这篇关于将参数传递给搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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