SharePoint Search api显示标记信息 [英] SharePoint Search api to display tag info
问题描述
您好
我们正在尝试获取标记有特定代码的文档,我们正在使用以下网址。
We are trying to fetch the documents tagged with a particular tag and we are using below URL for the same.
siteurl +" / _ api / search / query?& querytext = "" + tag +"'& querytag ='" + tag +"'& sourceid ='e7ec8cee-ded8-43c9-beb5-436b54b31e84'& $ select = Title,Path,Author,Tags& clienttype ='ContentSearchRegular'"
siteurl + "/_api/search/query?&querytext='" + tag + "'&querytag='" + tag + "'&sourceid='e7ec8cee-ded8-43c9-beb5-436b54b31e84'&$select=Title,Path,Author,Tags&clienttype='ContentSearchRegular'"
所以在 Microsoft.Office.Server.Search.REST.RelevantResults 中,所有文件都带有它的将显示相应的标题,作者等,但不会显示其列,包括标签或ID。
如何获得单独附加到特定文档的相关标签。
So in Microsoft.Office.Server.Search.REST.RelevantResults, all the documents with its respective Title, Author, etc will be displayed but not its Columns including tags or ID. How to get the related Tags that are attached to particular documents individually.
请告诉我们您的想法或上述方法是否对我们的要求有任何更正。
Please let us know your thoughts or if the above approach has any corrections towards our requirement.
在此先感谢
Sai Kumar
Sai Kumar
推荐答案
您好Sai Kumar,
Hi Sai Kumar,
您是如何在文档中添加标签的?
How did you add a tag to the document?
您是否创建了一个列表文档库中标签的列?
Did you create a list column for the tags in the document library?
您是否想要在整个网站中获取标有特定标签的文件?
Did you want to get the documents tagged with the specific tag in the whole site?
如果标签是列,您可以使用以下搜索查询:
If the Tags is the column, you could use the search query as below:
http:// yousite / _api / search / query?querytext ='yourtagcolumn:keyword'& selectproperties ='Title ,路径,作者,标签和;的SourceID =" e7ec8cee-ded8-43c9-beb5-436b54b31e84’ &安培; clienttype ='ContentSearchRegular'
http://yousite/_api/search/query?querytext='yourtagcolumn:keyword'&selectproperties='Title,Path,Author,Tags'& sourceid='e7ec8cee-ded8-43c9-beb5-436b54b31e84'& clienttype='ContentSearchRegular'
祝你好运,
Sara Fan
这篇关于SharePoint Search api显示标记信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!