feed: keyword not working?
-
13 mai 2009 06:45Hi,
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!
Toate mesajele
-
13 mai 2009 11:51Hello,
I can confirm that the feed keyword is not working. -
14 mai 2009 06:36
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- Propus ca răspuns de Beatrice Oltean 14 mai 2009 06:40
-
14 mai 2009 06:48Proprietar
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- Marcat ca răspuns de AlessCOwner 16 mai 2009 02:15