如果我与Bings网络服务进行搜索,而没有具体指明“数字”和“数字”,我就会收到98份查询结果。 如果我使用抵消(如下文法所示),计算总数仅为18。
如果我具体说明,计算总数是否相同?
BingService soapClient = new BingService();
SearchRequest request = new SearchRequest();
request.AppId = ConfigurationManager.AppSettings["BingKey"];
request.Sources = new BingLiveSearchService.SourceType[] { SourceType.Web };
request.Query = query;
request.Web = new BingLiveSearchService.WebRequest { Count = 20, Offset = 21, OffsetSpecified = true, CountSpecified = true };
string resp = string.Empty;
var response = soapClient.Search(request);
if (response.Web != null && response.Web.Total > 0)
{
resp += "TOTAL COUNT:" + response.Web.Total + "<br/><br />";
foreach (var item in response.Web.Results)
{
resp += "<div style= padding-bottom:10px; > + item.Title + "</div>";
}
}