The query "moscow is a beautiful city" does not return any results containing the exact search phrase (compare to Google's response). Is it a bug in Bing and are there any workarounds?
And screenshots:
vs.
The query "moscow is a beautiful city" does not return any results containing the exact search phrase (compare to Google's response). Is it a bug in Bing and are there any workarounds?
And screenshots:
vs.
The problem is in the market
parameter.
See the Bing API 2.0 documentation:
The market parameter is optional. If the parameter is not specified, the API will attempts to determine an applicable market through the use of logic such as the IP address of the request, cookies. and other elements.
Compare two results for the same query using different market
option values: en-US vs ru-RU. Each result on the first page of the answer for the en-US market contains the exact query string, while for ru-RU no result does.
Just put a plus before the first quote:
+"Moscow is a beautiful city"
Sometimes this works perfectly. Other times, it lets through a few false positives. Other times, it lets through a lot. But it always seems to work better than anything else you can do (certainly better than any other suggestion here so far).
Another tip: Capitalizing "Moscow" seems to make it work slightly better.
Bing's documentation does claim that putting a phrase in quotes
Returns results that contain the specified phrase, exactly.
Therefore, needing to put a plus at the beginning is clearly a bug - just one of many in Bing that MS apparently doesn't care to fix.
As far as I have been able to tell over the YEARS, Bing has never worked using quotation marks. Still does not. Always bothered me. One of the main reasons I go back to Google when Bing fails me. If relevant, I use Firefox. My post is as of today's date of August 5, 2014 CE.
Quotations do search by exact phrase. See the Bing documentation Search effectively that states:
Search for exact phrases by placing the search words within quotation marks. For example, "short evergreen tree."
Check that you don't have unusual settings or filters in your Bing settings.
There is a simple solution. You can use the inbody: parameter so that Bing does not separate your search string into multiple words.
Try searching in Bing for inbody:Moscow&is&a&beautiful&city
Also works as inbody:Moscow+is+a+beautiful+city
This is what I do:
The only way that the Bing API returns the same results for an exact phrase is to put another double quotes in the query (in REST invokes it seems that is not needed to escape the quotes). I tried first this URL:
https://api.datamarket.azure.com/Bing/Search/Web?Query=%27google%20api%20news%27&$format=json&$top=3
The results were diferent. Next I tried this other:
https://api.datamarket.azure.com/Bing/Search/Web?Query=%27%22google%20api%20news%22%27&$format=json&$top=3
With the second one the results were the same as that in the Bing web search with "google api news" phrase.
Google no longer searches for exact matches when you enclose all terms within quotation marks. It just returns every thing that has both terms but located separately anywhere in the document.