locked
feed: keyword not working? RRS feed

  • Question

  • 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!
    Wednesday, May 13, 2009 6:45 AM

Answers

  • 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

    • Marked as answer by AlessC Saturday, May 16, 2009 2:15 AM
    Thursday, May 14, 2009 6:48 AM

All replies

  • Hello,

    I can confirm that the feed keyword is not working.
    Wednesday, May 13, 2009 11:51 AM
  • 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

    Thursday, May 14, 2009 6:36 AM
  • 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

    • Marked as answer by AlessC Saturday, May 16, 2009 2:15 AM
    Thursday, May 14, 2009 6:48 AM