人们使用过滤器搜索Webpart [英] People search webpart with filter

查看:79
本文介绍了人们使用过滤器搜索Webpart的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了自定义搜索页面,并添加了人物搜索和人物搜索结果Web部件.

I have created custom search page and add people search and people search result webpart.

如果我搜索 詹姆斯·史密斯(james smith)返回结果,我的要求是允许用户直接搜索员工编号/单元格编号/名字/姓氏为此,我更新了查询过滤器,例如 

if i search  james smith its return result, my requirement is to allow user to search directly either on employeenumber/cell number/firstname/lastname  for that i update query filter like 

EmployeeNumber:{searchboxquery}或CellNumber:{searchboxquery}或FirstName:{searchboxquery}或LastName:{searchboxquery}

EmployeeNumber:{searchboxquery} OR CellNumber:{searchboxquery} OR FirstName:{searchboxquery} OR LastName:{searchboxquery}

在这种情况下,其返回结果将搜索雇员编号/单元号/名字/姓氏但如果搜索姓氏+姓氏"(例如詹姆斯·史密斯),则不会返回结果.

in that case its return results either search on employeenumber/cell number/firstname/lastname  but its not return result if search firstname + lastname like james smith.

请指导可以进行的查询,以便用户可以搜索姓氏+姓氏的组合,也可以指定员工编号/手机号码/姓氏/姓氏

Please guide what query can be made so that user can search combination with firstname+ lastname or also speciifc on employeenumber/cell number/firstname/lastname

thx

iffi

推荐答案

不敬,

我已经在SharePoint 2013中的SharePoint中进行了测试,因此无法重现您的问题.

当我用FirstName:james或LastName:smith搜索时,詹姆斯·史密斯(James Smith)将在搜索结果中返回:


Hi imughal, 

I have done a test in my SharePoint 2013 in my SharePoint and i cannot reproduce your issue. 

When i search with FirstName:james OR LastName:smith,  james smith will be returned in search results:


对于您的问题,请确保"FirstName"和"LastName Managed"属性可搜索:

For your issue, make sure the FirstName and LastName Managed property are searchable:

然后开始完全爬网并比较结果.

Then start a full crawl and compare the results. 

最好的问候,

Lisa Chen

Lisa Chen 


这篇关于人们使用过滤器搜索Webpart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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