Filtering results from Google News using YQL

Consider the following statement select * from google.news(10) where q="port melbourne". My expectation was that YQL (or Google) would only return news items with the exact phrase "port melbourne". In fact I get any news items that contain the phrase "port" or "melbourne" or "port melbourne".

If you search for the exact phrase "port melbourne" in the Google News interface you get an exact match.

Does anyone know a way of forcing an exact string match using YQL?

Many thanks in advance,

0 Replies
  • Give this query a shot - it should give you what you are looking for. The query has been wrapped in quotes to denote an exact string match: select * from google.news(10) where q='"port melbourne"'

    - Jon

Recent Posts

in General Discussion at YDN