feed: keyword not working?

Locked feed: keyword not working?

  • 2009. május 13. 6:45
     
     
    Hi,

    The feed: keyword does not seem to be working.  It works on live.com, but it does not seem to work on the live search api.  The following queries give no results:
        feed:nba
        feed: nba
        nba feed:
    I searched this forum and saw that the keyword feed was not working on Feb 25 but was fixed on Feb 28.  Perhaps the same problem has reappeared?

    Thanks in advance!

Az összes válasz

  • 2009. május 13. 11:51
     
     
    Hello,

    I can confirm that the feed keyword is not working.
  • 2009. május 14. 6:36
     
     Javasolt válasz

    A better solution is offered to restrict the web results to feeds.  You need to set WebRequest.FileType="feed".

    Example with XML interface: http://api.search.live.net/xml.aspx?query=nba&sources=web&appid=<your AppID>&web.filetype=feed

  • 2009. május 14. 6:48
    Tulajdonos
     
     Válasz

    Sorry for the trouble guys.

    You have already discovered that feeds: does no longer work for the API - we had to do this because of a serious unwelcome side effect.

    To achieve the same result as using feeds: before, you need to use a strongly typed parameter in the request instead of a query keyword.

    The new parameter is a new value for the FileType attribute that can be set to "feed". This would be adding

    Web.Filetype=feeds 

    for the XML and JSON interface

    and this in SOAP (C#)

           SearchRequest request = new SearchRequest();
    
            // Common request fields (required)
            request.AppId = AppId;
            request.Query = "my query";
            request.Sources = new SourceType[] { SourceType.Web };
    
    
            // Web-specific request fields (optional)
            request.Web = new WebRequest();
            request.Web.FileType = "feeds";

    The MSDN documentation will be updated in a few days.

    HTH

    --Alessandro

    • Megjelölte válaszként: AlessCOwner 2009. május 16. 2:15
    •