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
最满意答案
如果您只想在输出中看到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 ...
-
为什么在Python中加载图像时像素值被反转和转置?(Why pixel values inverted and transposed on loading image in Python?)[2023-10-21]
我同意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 ...
-
SQL主键重复值(SQL Primary Key Duplicate Values)[2022-08-23]
您在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 ...