none
Search API problem - Exact phrase search is not working?

    Question

  • Hello!

    The exact phrase search seems not to be working. Here is an example of a query (both variants):

    https://api.datamarket.azure.com/Bing/SearchWeb/v1/Web?Query=%27%22as%20a%20social%20practice%20has%20found%20associations%20with%20various%22%27&Market=%27en-US%27

    https://api.datamarket.azure.com/Bing/SearchWeb/Web?Query=%27%22as%20a%20social%20practice%20has%20found%20associations%20with%20various%22%27&Market=%27en-US%27


    The response I received is the same for both (I pasted just a part of it):

    "d":{"results":[{"__metadata":{"uri":"https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/Web?Query=\u0027\"as a social practice has found associations with various\"\u0027&Market=\u0027en-US\u0027&$skip=0&$top=1","type":"WebResult"},"ID":"4ca20f35-a08f-4c2b-aaf0-1e8b65cd0682","Title":"qualitative study methods: Topics by Science.gov","Description":"Note: This page contains sample records for the topic qualitative study methods from Science.gov. While these samples are representative of the content of Science.gov,","DisplayUrl":"www.science.gov/topicpages/q/qualitative+study+methods.html","Url":"http://www.science.gov/topicpages/q/qualitative+study+methods.html"},{"__metadata":{"uri":"https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/Web?Query=\u0027\"as a social practice has found associations with various\"\u0027&Market=\u0027en-US\u0027&$skip=1&$top=1","type":"WebResult"},"ID":"c483f115-c94a-45ee-9c47-5884521424bf","Title":"CHAMBERLAYNE, Prue Et Al (Ed.) - Turn to Biographical Methods in ...","Description":"CHAMBERLAYNE, Prue Et Al (Ed.) - Turn to Biographical Methods in Social Science (OCR) - Ebook download as Text file (.txt), PDF File (.pdf) or read book online.","DisplayUrl":"www.scribd.com/doc/132147707/CHAMBERLAYNE-Prue-Et-Al-Ed-Turn-to...","Url":"http://www.scribd.com/doc/132147707/CHAMBERLAYNE-Prue-Et-Al-Ed-Turn-to-Biographical-Methods-in-Social-Science-OCR"} ....

    As you can see, the results do not contain the exact matches and are totally irrelevant. Can you please fix this? Or tell me if I am doing something wrong?  Thanks!

    P.S. I used this phrase to check if API is working correctly, and usually it returned no results. I tried searching for the phrase simply in browser, and got no results, which is correct.

    http://www.bing.com/search?q=%22as+a+social+practice+has+found+associations+with+various%22&go=&qs=n&form=QBLH&pq=%22as+a+social+practice+has+found+associations+with+various%22&sc=0-0&sp=-1&sk=





    Tuesday, October 22, 2013 2:25 PM

Answers

  • hi ,

    I test your query, when search result didn't have item include this term, Bing result may show the approaching item. I suggest you could use <label data-bind="text: name, attr: { 'for': name }" for="WebSearchOptions">WebSearchOptions </label>"DisableQueryAlterations" into your query. Also, If you now search this term, I guess you may find this thread in your top 1 of search result.

     

    Please try it.

    Hope it helps.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, October 24, 2013 6:56 AM
    Moderator

All replies

  • Hi,

    From your description, I guess you want to exact search. So I guess you may need change keyword match type. Like this:

    phrase match "keyword"       Words in your keyword in the same order as a customer's search query or other input—even if other words are present in that query.      For example, if your keyword is "red flower", it's triggered by a search for big red flower, but not yellow flower.
            exact match [keyword] Words in your keyword match a customer's search query or other input exactly. For example:         if your keyword is [red roses] its triggered by a search for red roses.

     

    I suggest you could refer to this document (http://advertise.bingads.microsoft.com/en-in/help-topic/how-to/moonshot_conc_matchoptions.htm/about-keyword-match-types) for more detail.

    If I misunderstand, please let me know.

    Thanks

    Regards,

    Will


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, October 23, 2013 6:50 AM
    Moderator
  • Hello Will,

    Yes, you misunderstood. What you are talking about is SEO, right? Keywords and stuff is not what I am interested in.

    I want to use Bing search API to look for similarities in content present online. I have created a service for this, which should use this API. But when I tried to test the API, it is not working correctly. You can find all the URLs above. Hope you can help.

    Thanks

    Andrew

    Wednesday, October 23, 2013 8:16 AM
  • hi ,

    I test your query, when search result didn't have item include this term, Bing result may show the approaching item. I suggest you could use <label data-bind="text: name, attr: { 'for': name }" for="WebSearchOptions">WebSearchOptions </label>"DisableQueryAlterations" into your query. Also, If you now search this term, I guess you may find this thread in your top 1 of search result.

     

    Please try it.

    Hope it helps.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, October 24, 2013 6:56 AM
    Moderator