Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 2010 FullTextSearchQuery如何与SharePoint 2010和FAST Search Server配合使用?_Sharepoint 2010_Sharepoint Api_Fast Esp - Fatal编程技术网

Sharepoint 2010 FullTextSearchQuery如何与SharePoint 2010和FAST Search Server配合使用?

Sharepoint 2010 FullTextSearchQuery如何与SharePoint 2010和FAST Search Server配合使用?,sharepoint-2010,sharepoint-api,fast-esp,Sharepoint 2010,Sharepoint Api,Fast Esp,我刚刚安装了一个测试环境,其中SharePoint 2010和FAST Search Server是默认的搜索服务应用程序。从一些测试内容开始,并使用标准SharePoint GUI执行了一些搜索-到目前为止一切正常 现在我想使用Microsoft.Office.Server.Search.query.FullTextSqlQuery类执行一个更复杂的查询,结果会很糟糕。当我尝试访问搜索返回的ResultableCollection对象时,出现异常 这是我正在尝试运行的PowerShell脚本:

我刚刚安装了一个测试环境,其中SharePoint 2010和FAST Search Server是默认的搜索服务应用程序。从一些测试内容开始,并使用标准SharePoint GUI执行了一些搜索-到目前为止一切正常

现在我想使用Microsoft.Office.Server.Search.query.FullTextSqlQuery类执行一个更复杂的查询,结果会很糟糕。当我尝试访问搜索返回的ResultableCollection对象时,出现异常

这是我正在尝试运行的PowerShell脚本:
$site = New-Object Microsoft.SharePoint.SPSite "http://moss"
$kq = New-Object Microsoft.Office.Server.Search.Query.FullTextSqlQuery $site
$kq.ResultTypes = [Microsoft.Office.Server.Search.Query.ResultType]::RelevantResults
$kq.RowLimit = 5
$kq.QueryText = "SELECT Title, Url"
$resultTableCollection = $kq.Execute()
$relResultTable = $resultTableCollection.Item([Microsoft.Office.Server.Search.Query.ResultType]::RelevantResults)
$site=新对象Microsoft.SharePoint.SPSite“”
$kq=新对象Microsoft.Office.Server.Search.Query.FullTextSqlQuery$站点
$kq.ResultType=[Microsoft.Office.Server.Search.Query.ResultType]::相关结果
$kq.RowLimit=5
$kq.QueryText=“选择标题、Url”
$resultablecollection=$kq.Execute()
$relResultTable=$resultTableCollection.Item([Microsoft.Office.Server.Search.Query.ResultType]::相关结果)
这是异常(由上面最后一行代码引发):
字典中不存在给定的键。
System.Collections.Generic.KeyNotFoundException位于 System.ThrowKeyNotFoundException()位于
System.Collections.Generic.Dictionary`2.在
Microsoft.Office.Server.Search.Query.ResultableCollection.get_项(ResultType requestedType)

当我使用std.SharePoint搜索服务应用程序执行搜索时,同样的脚本也能完美地工作。我发现一篇相关的帖子说,查询结果的安全性问题可能是我问题的根源。但是,我看不出这与我的环境有什么关系,因为我的FAST服务应用程序的服务帐户肯定对该广告有足够的权限


有什么建议吗?

此API使用SQL Server中的全文搜索功能。您必须在SQL Server层启用该选项


该API不会与FAST集成。您可以使用FAST,但最终将使用向QR服务器发出http请求的API

我不会为它争光,但这个URL似乎就是你想要的

FQL是一种相当基本的语言,具有简单的操作、AND、OR等,但肯定可以进行一些致命的查询,以满足您的需要

试图为您挖掘一些公开可用的FQL参考,但找不到任何参考。如果你需要更多的帮助,喊一声

干杯