使用REST搜索产生的结果少于搜索页面 [英] Search with REST yields less results than the search page

查看:65
本文介绍了使用REST搜索产生的结果少于搜索页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SharePoint 2013搜索页面上,我输入"contentclass:"STS_Web"路径:http://项目/位点/"并显示"关于
2,212结果
"这就是我的期望。


在REST中做同样的事情< HTTP://项目/ _api /搜索/查询QUERYTEXT ='内容类:" STS_Web"路径:http://项目/位点/"和; selectproperties ="名称,路径,说明"和; rowlimit = 50000 "
仅产生508个项目。


是否有修复它的CU?


有没有办法通过REST获得更多结果? 


谢谢





Ofer Gal

解决方案

您好Ofer Gal,


如果您的项目越来越少,那是因为SharePoint搜索会跳过它认为是重复的。它的定义是"重复"。非常广泛。


要解决此问题,只需将其添加到您的网址:


& trimduplicates = true


更多信息:


HTTP:// techtrainingnotes.blogspot.com/2018/01/sharepoint-search-weirdness-part-5.html


祝你好运


Itch太阳


On SharePoint 2013 search page, I enter "contentclass:"STS_Web" path:http://projects/sites/" and it shows "About 2,212 results" which is what I expect.

Doing the same in REST get "http://projects/_api/search/query?querytext='contentclass:"STS_Web" path:http://projects/sites/'&selectproperties='Title,Path,Description'&rowlimit=50000" yields only 508 items.

Is there a CU that will fix it?

Is there a way to get more results with REST? 

Thank you


Ofer Gal

解决方案

Hi Ofer Gal,

If you are getting fewer items, it's because SharePoint search skips what it thinks are duplicates. Its definition of "duplicates" is quite broad.

To troubleshoot this problem just add this to your URL:

&trimduplicates=true

More information:

http://techtrainingnotes.blogspot.com/2018/01/sharepoint-search-weirdness-part-5.html

Best regards

Itch Sun


这篇关于使用REST搜索产生的结果少于搜索页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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