帮助SharePoint搜索 [英] Help with SharePoint Search

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

问题描述

大家好,

我目前正在SharePoint 2013中开发自定义搜索。我尝试搜索的库中有多列是使用内容类型手动创建的。我试图让我的搜索结果只返回这一列。

I am currently developing a custom Search in SharePoint 2013. We have multiple columns in the library I am trying to search that were created manually using content types. I am trying to have my search results only return on this one column.

例如。我们有正式的文件标题,(我不想回复)。

For example. We have the official Document Title, (This I do not want to return).

然后我们有一个名为"Title"的列。 - 用户在上传文档时填写的单行文本。如何让我的搜索只搜索该列并根据该列中的元数据返回结果。

Then we have a column that is just called "Title" - It is a single line of text that users fill out when uploading a document. How can I have my search just search that column and return results based off of the metadata in that column.

提前谢谢

Kenny

推荐答案

您好,

您可以使用Rest API过滤并返回特定的元数据列,如这个:

You could use Rest API to filter and return the specific metadata column like this:

http:// sp / sites / jerrydev / _api / web / lists / getbyTitle('Documents')/ items?

http://sp/sites/jerrydev/_api/web/lists/getbyTitle('Documents')/items?


select = title&
select=Title&


过滤器标题eq'test'
filter title eq 'test'

其余的Query将过滤所有'Title'列等于'test'并仅返回此专栏:

The rest Query will filter all the 'Title' column equals 'test' and only return this column:

参考:

SharePoint 2013:使用REST API在SharePoint列表中选择,筛选,排序和分页

谢谢

最诚挚的问候 

Best Regards 


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

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