本文介绍了在带有自定义列的列表中搜索托管数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含托管数据属性的列的列表,我希望用户可以基于该托管数据属性进行搜索.例如,如果我的术语库中有此层次结构

I have a list with column who have managed data property and I would like that a user can search based on that managed data property. For example if I have this hierarchy in my Term Store

国家/地区

->北美

---->加拿大

---->Canada

---->美国

---->USA

如果用户进入北美,它将搜索列表并给出所有标记为North America,Canada和USA的结果.这意味着我要使用父项和所有子项的结果集.

If user would enter North America it would search the list and give all result tagged as North America ,Canada and USA. That mean I want result set with Parent terms and all the child terms.

我该如何实现?

我使用了REST,并且它仅给我带子项标签的结果?

I have used REST and its giving me only results tagged with child terms?

我需要制作一个Web部件吗?我应该使用CAML吗?

Do I need to make a web part ? Should I use CAML ?

我迷路了.

TIA

推荐答案

如果您要基于父级进行过滤,这就是答案

if you would like to filter based on parent, this is the answer

https://social.technet.microsoft.com/Forums/zh-CN/fc426cde-7eb1-4041-8bb5-b397796517af/how-to-设置托管元数据导航以包含父项?forum = sharepointgeneral

要进行搜索,[;请检查此链接

For searching, [;ease check this link

http: //sharepointpals.com/post/How-TaxonomyField-Managed-Property-renders-on-Search-Service-Application-in-SharePoint-2013


这篇关于在带有自定义列的列表中搜索托管数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 09:27