Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try changing <code>unifiedQuery</code> to the following:</p> <p><code>var unifiedQuery = "'NFL Football' or 'Jacksonville Jaguars' or 'Atlanta Falcons'";</code></p> <p>I tried something very similar to your sample code, using this format for the query string, and it worked for me:</p> <pre><code>var bingUri = new Uri("https://api.datamarket.azure.com/Bing/Search/v1/", UriKind.Absolute); var bingContainer = new BingSearchContainer(bingUri); bingContainer.Credentials = new NetworkCredential(BingAPIUserName, BingAPIAccountKey); var unifiedQuery = "'NFL Football' or 'Jacksonville Jaguars' or 'Atlanta Falcons'"; var newsQuery = bingContainer.News(unifiedQuery, null, "en-US", "Strict", null, null, null, "rt_Sports", "Relevance"); var results = newsQuery.Execute(); foreach (var item in results) { Console.WriteLine(item.Title); } </code></pre> <p>Here are my results:</p> <pre><code>Fantasy Football 2012: Ranking the Top 25 RBs NFL Football No Longer Just a Sunday Game Ravens Notebook: Ed Reed decided to play in game vs. Falcons since he 'wasn't doing anything else' PrimeSport Partners with Jacksonville Jaguars to Offer Tickets and Official Fan Packages for all Home and Away Games in 2012 Season Jaguars cut former Ravens wide receiver Lee Evans Falcons left tackle Baker finally feels healthy Jaguars release veteran WR Lee Evans NFC West: 2012 NFL Training Camp Atlanta Falcons 2012 NFL TV Schedule Jaguars training camp: Veteran WR Lee Evans released Jaguars score 18 points in second half to beat Giants 32-31 Jacksonville Jaguars put running back Maurice Jones-Drew on reserve/did not report list Postcard from camp: Falcons Questions abound as NFL preseason opens in earnest NFL fantasy football: Ryan Mathews loses value </code></pre> <p>The format for the <code>unifiedQuery</code> string is basically the OData URI query string format. For a full description of how these query strings work, check out the OData URI conventions documentation at <a href="http://www.odata.org/documentation/uri-conventions" rel="nofollow">http://www.odata.org/documentation/uri-conventions</a>. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload