首页 \ 问答 \ SharePoint 2013搜索REST API(SharePoint 2013 search REST API)

SharePoint 2013搜索REST API(SharePoint 2013 search REST API)

我试图通过在浏览器中使用此URL来搜索SharePoint网站中的项目: sites/esc/_api/search/query?querytext='Amit' 。 但是,我无法检索在SharePoint网站中搜索相同项目时检索到的相同数量的结果。 与SharePoint网站中的搜索相比,使用URL搜索仅检索少量结果,而不同网站上的博客指出URL将提供完整结果。 任何人都可以解释这个或提供URL来做同样的事情。


I am trying to search items in SharePoint site by using this URL in the browser: sites/esc/_api/search/query?querytext='Amit'. But I am not able to retrieve the same number of results which are retrieved when the same item is searched in SharePoint site. The search with the URL retrieves only a few results as compared to the search in SharePoint site whereas the blogs on different websites states that the URL will give complete results. Can anyone please explain this or provide the URL to do the same.


原文:https://stackoverflow.com/questions/17026667
更新时间:2022-04-14 10:04

最满意答案

如果您只想在输出中看到2行,那么您可能希望按方案列聚合数据。 在聚合函数中使用条件语句。 在我的例子中,我将使用sum(),但随意用你真正需要的替换它:

select
    scenario,
    sum(CASE WHEN TPG LIKE '%ASPN%' THEN WNS ELSE 0 END) AS ASPN_WNS
    ...
    from table1
    group by scenario

If you want to see only 2 rows in the output, then you probably want to aggregate your data by scenario column. Use your conditional statements within an aggregate function. In my example I will use sum(), but feel free to replace it with the one you truly need:

select
    scenario,
    sum(CASE WHEN TPG LIKE '%ASPN%' THEN WNS ELSE 0 END) AS ASPN_WNS
    ...
    from table1
    group by scenario

相关问答

更多
  • 我的数据文件中没有看到任何逗号。 无论如何,它不应该与列表导向的输入有任何区别。 只要尝试像你写的那样阅读它。 do i=1,N read (*,*) cs(i,1), cs(i,2) enddo 否则,如果您在一个命令中读取整个数组,它会按列主序读取它,即cs(1,1), cs(2, 1), ....cs(N,1), cs(1, 2), cs(2,2), ...这是数组存储在内存中的顺序。 I do not see any comma in your data file. It should n ...
  • 我同意gelezko关于切换索引顺序的建议。 这将解决换位问题。 出现颜色问题是因为输入图像实际上不是灰度。 当我尝试print img.mode ,我得到的是“P”而不是“L”。 在对像素进行任何处理之前,尝试显式转换为L. img=Image.open('cat.png') img = img.convert("L") pix=img.load() 现在你应该得到一个正确的方向和彩色图像: I agree with gelezko's suggestion to switch indexing ord ...
  • 如果我理解正确,你试图使用geom_bar() geom,它会给你带来问题,因为它想要制作一个直方图,但你已经完成了这种总结。 (如果你提供了迄今为止我尝试过的代码,我就不用猜了) 在这种情况下,您可以使用geom_col()代替。 ggplot(d, aes(x = filteredprovince, y = n, fill = factor(PROVINCIA))) + geom_col() 或者,您可以将geom_bar()的默认统计信息从"count"更改为"identity" ggplot(d, ...
  • 如果您只想在输出中看到2行,那么您可能希望按方案列聚合数据。 在聚合函数中使用条件语句。 在我的例子中,我将使用sum(),但随意用你真正需要的替换它: select scenario, sum(CASE WHEN TPG LIKE '%ASPN%' THEN WNS ELSE 0 END) AS ASPN_WNS ... from table1 group by scenario If you want to see only 2 rows in the outp ...
  • 喜欢这个: Select (SELECT TOP 1 Column_A FROM table1) as 'Column_A', (SELECT TOP 1 Column_B FROM table2) as 'Column_B', (SELECT TOP 1 Column_C FROM table3) as 'Column_C' Like this: Select (SELECT TOP 1 Column_A FROM table1) as 'Column_A', (SELECT TOP 1 ...
  • 为了确定一个矩阵是否是对角占优的,你必须检查排除对角线系数的行系数之和是否大于对角系数。 显然,您将绝对值作为测试的一部分。 你不这样做,而是包括对角线系数。 正如你所提到的,你应该用对角线系数减去每个元素的总和以确保检查是正确的,但是由于某种原因,你没有把它放在代码中: def dd(X): D = np.diag(np.abs(X)) # Find diagonal coefficients S = np.sum(np.abs(X), axis=1) - D # Find row sum ...
  • 您可以直接构建MultiIndex ,如下所示: In [27]: mi = pd.MultiIndex.from_tuples([('XYZ', 'EDBIT')], names=['ID', 'Measure']) In [28]: df.index = mi In [29]: df Out[29]: Period 2013Q2 2014Q2 2015Q2 ID Measure ...
  • 使用边框颜色显示对角线切割的div。 将它与::after结合使用只使用一个div。 .background { background-color: #5555AA; padding-top: 15px; } .content { position: relative; background-color: white; height: 30px; line-height: 30px; padding: 0 100px 0 200px; display:in ...
  • 您在ID和StudentID上有一个复合主键。 这意味着您将ID和StudentID组合在一起必须是唯一的。 由于ID是一个标识列,因此ID和StudentID组合始终是唯一的(因为ID本身已经是唯一的)。 您可以将主键更改为仅在ID 。 然后,您可以在StudentID上添加唯一索引。 例如: create unique index idx_studentID on yourTable(StudentID) 这将确保StudentID列实际上只包含唯一值。 看起来您可能实际上并不需要ID列,但这比原始问 ...
  • 这就是GetRows工作方式。 即使您可以使用Excel的转置功能,如果记录数超过Excel中的最大列数,它也不会始终有效。 你有3个选择: 使用列行索引或行列循环遍历数组。 编写一个辅助函数,为您进行转置。 如果你所做的只是将数据插入Excel,请不要使用GetRows 。 请改用Range.CopyFromRecordset方法。 That's the way GetRows works. Even if you can use Excel's transpose function, it won't ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。