为什么要使用基本的“单行文本"?如果我键入区分大小写并使用托管属性来缩小范围,则该列仅在搜索中返回结果? [英] Why is it that a basic "single line of text" column only returns results in a search if I type it case sensitive AND use a managed property to narrow my scope?
问题描述
SharePoint Server 2016
我有一个文档库,其中有一列名为申请人的名字",类型为单行文本.
I have a document library with a column called "Applicant First Name", the type is single line of text.
假设我在此列中有一个名字"Nick".我正在尝试利用搜索结果Web部件进行查询转换,以使用户可以根据列属性值进行搜索.
Say I have a name in this column, "Nick". I'm trying to utilize a search results web part to do a query transform to let users search based on column property values.
因此,当我使用查询生成器时,可以得到一些结果,例如,申请人ID也是单行文本,但只是一个数字,就可以了.但是,如果我尝试仅使用{searchTerms?}进行搜索,然后使用进行测试 这个名字,尼克,我没有得到任何结果.实际上,无论是尼克还是尼克,我都没有得到结果.
So, when I use the query builder, I can get some of it to work out okay, like for example the applicant ID which is also a single line of text but is just a number, is fine. However, if I try to just do a search using {searchTerms?}, and then test it using that name, Nick, I don't get any results. In fact, I don't get results with either nick or Nick.
获得结果的唯一方法是查询转换并使用托管属性ApplicantFirstNameOWSTEXT,该属性映射到某些已爬网属性.只有这样,我才能得到结果,并且只有输入与"Nick"完全一样的结果.
The only way I can get results is if I query transform and use the managed property, ApplicantFirstNameOWSTEXT, which is mapped to some crawled properties. Only then do I get results and ONLY if I type it exactly like "Nick".
为什么会这样?如何使它在没有托管属性或不区分大小写的情况下正常工作是什么解决方案?我的意思是我确实想在查询转换中使用托管属性,但似乎我应该能够从中获取文档的结果 仅通过搜索该行中某个属性之外的值即可找到该库.
Why is this and what is the solution for getting it to just work without a managed property or case insensitivity? I mean I DO want to use the managed property in my query transform but it just seems like I should be able to get results of the document from the library just by having searched on a value that's apart of a property in that row.
在搜索架构中,托管属性是可查询,可检索和可搜索的.
In the search schema that managed property is queryable, retrievable, and searchable.
谢谢!
推荐答案
达金,
请打开搜索中心网站,尝试使用默认的"Local"搜索"Nick" SharePoint结果"结果源.你能得到结果吗?
检查此列的抓取属性是否允许包含在全文索引中
此外,重新索引库并运行完全爬网,然后比较结果.
如果问题仍然存在,请提供有关您的查询的更多信息和屏幕截图进一步的研究.
最好的问候,
Linda Zhang
这篇关于为什么要使用基本的“单行文本"?如果我键入区分大小写并使用托管属性来缩小范围,则该列仅在搜索中返回结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!