mikedemers / rbing

a Ruby library for Microsoft's Bing search API
http://9astronauts.com/code/ruby/rbing
MIT License
28 stars 21 forks source link

Altered Query #4

Open RoyalTS opened 12 years ago

RoyalTS commented 12 years ago

This isn't so much a bug as a problem that I couldn't solve by myself and was hoping you'd be able to help with:

It seems that, contrary to the docs, the Bing API does not automatically alter a query when it is misspelled. This means that RBing::web("Dha Dkan", :site => 'imdb.com/title') returns no results while the equivalent query on the Bing site (http://www.bing.com/search?q=dha+dkan+site%3Aimdb.com%2Ftitle&qs=HS&form=QBLH&pq=dha+dkan&sc=8-8&sp=1&sk=) returns the correct result at the first position.

My question is now how I can get RBing to return the results to the altered query where appropriate. Can I somehow set the AlteredQuery property (http://msdn.microsoft.com/en-us/library/dd250932.aspx) or is there some other way of accomplishing this?