Ask a questionAsk a question
 

Answerfeed: keyword not working?

  • Wednesday, May 13, 2009 6:45 AMFCorella Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!

Answers

  • Thursday, May 14, 2009 6:48 AMAlessCMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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

All Replies

  • Wednesday, May 13, 2009 11:51 AMme11 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    I can confirm that the feed keyword is not working.
  • Thursday, May 14, 2009 6:36 AMBeatrice Oltean Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer

    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:48 AMAlessCMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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