Azure cognitive search api returns irrelevant results

Shobhit Srivastava 1 Reputation point
2020-07-21T03:31:37.64+00:00

The documentation (https://learn.microsoft.com/en-us/rest/api/cognitiveservices-bingsearch/bing-web-api-v7-reference#headers) says that the "q" parameter accepts advanced search operators. However, it seems like the operators are not functioning correctly, as I keep getting irrelevant search results that don't match the boolean queries that I'm building. For example, the term "("Atlanta" OR "Charleston") AND ("Software Engineer" OR "Software Engineering Manager") AND ("Google")" should return results that have:

  • either the term "Atlanta" or the term "Charleston"
  • either the term "Software Engineer" or the term "Software Engineering Manager"
  • the term "Google"

Does anyone know why this is happening? I've tried to structure the query in similar ways, but I keep getting back web pages that don't fit the criteria.

Thanks!

Bing Web Search
Bing Web Search
A Bing service that gives you enhanced search details from billions of web documents.
135 questions
{count} votes