English 中文(简体)
搜查 预报系统不一定总会退回同样的结果。
原标题:Bings Search API doesn t always return the same result count
  • 时间:2011-11-19 17:54:25
  •  标签:
  • c#
  • bing-api

如果我与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>";
        }

    }
最佳回答

http://www.bing.com/developers/s/APIBasics.html“rel=“nofollow” “根据民众的询问,估计结果数目可能与实际数字大不相同。 关键计算并不依靠这一数字”。 我想知道,计算和抵消论点是否使计算花费了略长的时间,从而在得出许多结果之前停止计算? 值得注意的是,。 不动产文件提到,“账面最低值为1;最高价值为50”,这样,如果你确实具体说明了贵重国家的价值,就会低于你所看到的98项结果,而没有具体说明数字。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签