.net Sharepoint对象模型与Web服务

.net Sharepoint对象模型与Web服务,.net,sharepoint,sharepoint-object-model,.net,Sharepoint,Sharepoint Object Model,我创建了一个xml查询,并将其发送到sharepoint搜索服务,该服务将返回一些结果。然后我从中提取了SQL查询文本,并开始在对象模型中使用它,但现在它不起作用了。根据下面的代码,看起来我做错了什么吗 查询XML(返回结果): 您至少需要添加: ftq.EnableStemming = false; ftq.TrimDuplicates = true; ftq.IgnoreAllNoiseQuery = true; ftq.KeywordInclusion = KeywordInclusion

我创建了一个xml查询,并将其发送到sharepoint搜索服务,该服务将返回一些结果。然后我从中提取了SQL查询文本,并开始在对象模型中使用它,但现在它不起作用了。根据下面的代码,看起来我做错了什么吗

查询XML(返回结果):


您至少需要添加:

ftq.EnableStemming = false;
ftq.TrimDuplicates = true;
ftq.IgnoreAllNoiseQuery = true;
ftq.KeywordInclusion = KeywordInclusion.AllKeywords;
至少对这两种方法做一个公平的比较。然后,您还可以尝试:

ftq.AuthenticationType = QueryAuthenticationType.PluggableAuthenticatedQuery;
ftq.EnableStemming = false;
ftq.TrimDuplicates = true;
ftq.IgnoreAllNoiseQuery = true;
ftq.KeywordInclusion = KeywordInclusion.AllKeywords;
ftq.AuthenticationType = QueryAuthenticationType.PluggableAuthenticatedQuery;