搜索特定字段时,SharePoint 2013阻止不起作用 [英] SharePoint 2013 Stemming Not Working when searching specific field(s)

查看:73
本文介绍了搜索特定字段时,SharePoint 2013阻止不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I'm trying to configure a search Result Source on SharePoint but I'm having issues with stemming.

要求:1.如果在单词的单数形式存在的情况下搜索关键字的复数形式,我希望搜索返回结果.例如:搜索动物应返回(动物和动物)的匹配项;搜索方应返回 匹配(聚会和派对,暴行和暴行)2.我想搜索特定列表. 3.我要搜索列表中的特定字段(返回结果中需要搜索的一个或两个字段中都包含搜索关键字). 4.这是一部分 使用SharePoint REST API在SP列表上进行搜索并在屏幕上显示结果的Angular 4应用程序的视图.

Requirements: 1. I want the search to return results if I search for plural version of a keyword when a singular version of the word exists. For example: Searching for animals should return matches on (Animal and Animals); Searching for Parties should return matches on (Party and Parties, atrocity and atrocities) 2. I want to search a specific list. 3. I want to search specific fields on the list (return results that have the search keyword in one or both fields where it needs to search against). 4. This is part of an Angular 4 application that uses the SharePoint REST API to make the search on the SP list and display the results on the screen.

问题:当我尝试在不指定字段的情况下设置搜索查询时,词干将正常运行.下面的查询返回动物"和动物"的结果

Issue: When I try setting up the search query without specifying the field, the stemming works properly. The query below returns results for both Animal and Animals

(路径:

(Path:https://listPathOnSharePointSite) animals (conentclass:STS_ListItem) -ContentClass=urn:content-class:SPSPeople

但是,当我指定要搜索标题"或摘要"(自定义托管元数据字段)时,词干不再起作用.下面的查询返回动物"的结果.仅且不显示动物"的匹配项

However, when I specify that I want to search the Title or ‘Abstract’ (custom managed metadata field), the stemming no longer works. The query below returns results for "Animals" only and doesn't show matches for "Animal"

动物(路径:

animals (Path:https://listPathOnSharePointSite) (Title:animals OR Abstract:animals) (contentclass:STS_ListItem) -ContentClass=urn:content-class:SPSPeople

我尝试了KQL和FQL中的各种排列和组合,但均未成功,并且找不到任何有助于正确进行查询/过滤的查询构建器.

I tried various permutations and combinations in KQL and FQL with no success, and could not find any query builder that could help make the query/filter correctly.

任何帮助都很好!!!

Any help would be great!!!

推荐答案

Stemming不适用于SharePoint 2013中的托管属性. /span>

Stemming is not available for managed properties in SharePoint 2013.

作为替代方案,请使用"OR"运算符.

(Title:animals OR Abstract:animals OR Title:animal OR Abstract:animal)


最好的问候,

张琳达


这篇关于搜索特定字段时,SharePoint 2013阻止不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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