feed: keyword not working?
-
Wednesday, May 13, 2009 6:45 AMHi,
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!
All Replies
-
Wednesday, May 13, 2009 11:51 AMHello,
I can confirm that the feed keyword is not working. -
Thursday, May 14, 2009 6:36 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- Proposed As Answer by Beatrice Oltean Thursday, May 14, 2009 6:40 AM
-
Thursday, May 14, 2009 6:48 AMOwner
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 addingWeb.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 AlessCOwner Saturday, May 16, 2009 2:15 AM