Bing Search API finds different results from the public search interface - bing-api

I used the bing search api to search site:www.article-submissions.biz, the query string is
http://api.bing.net/json.aspx?Query=site%3Awww.article-submissions.biz
The total results are 7
I search it on bing.com, the result is 45.
Why are the results different in the API from the public search interface?

Related

What is the maximum number of results that can be returned by the Bing Custom Search API per query?

From reading the documentation I can see that the maximum number of results per response can be set to 50. See link below.
https://learn.microsoft.com/en-us/rest/api/cognitiveservices-bingsearch/bing-custom-search-api-v7-reference#count
What is the maximum number of total results this API can return?
If a search returned a total of 400 results, would the Bing Custom Search API be able to return them all?
For example the Google Custom Search API will only return a maximum of 100 results per query (10 pages of 10 results).

Return a list of keywords associated with a place id in Google API?

Google API allows to retrieve a list of places based on Text Search in an area and the place_id initially retrieved can then be used with Place Details to get more information. However Google doesn't provide relevant keywords associated with this place. I am wondering if given a known place_id, it is possible to search all the associated keywords that would have return this result in a Google search otherwise.
For instance, a Text Search for "Mexican" Restaurant in Chelsea would return a number of places including place_id X. If you search for "Tacos" in Chelsea, it may return a number of places also including place_id X. Is there a way for me to query details about place_id X and return keywords "Mexican" and "Tacos" ?
If not, is there a cost-effective workaround? I thought about creating a master keywords database of 1000+ terms relevant to my market and then query every term in all the areas my app intends to serve and associate each keyword search with place ids but it may cost me a lot vs. querying these details with known place ids directly.
Thank you!

Searching for string in string in Couchbase

I'm using the GO SDK to search my Couchbase database. I have this exact match query working:
qp.And(cbft.NewConjunctionQuery(cbft.NewMatchQuery("garden").Field("Features")))
But I want to do use a 'LIKE' query instead. For example, find "garden" in this string "driveway, garden, shed".
How do I do that in Go?

Inject additional logic when elastic searches based on search query

I have a scenario where i need to extend search behavior and add some additional filter logic based on the document id . If the document can be visible to the user searching and then show in search result but have not found any.
Currently as part of search , search query is executed after applying all the filters. After the search results are fetched, we need to know if the resource can be shown to this user. Pretty much like ACL.
Now, if i apply these authorization/ audience type filters myself after getting results from elastic search , it creates a lot of problems like the aggregations count changes post filter. Also, the pagination of results gets impacted.
Is a there a way to implement such rules as hook provided by elastic search. That is if i can implement some logic implementing some interface and then call some web service returning a boolean and then adding the search result to the final collection based on that.
Some insight would be very useful.

Admin SDK Drive Activity Log doc_title partial matches?

I'm using the Google Admin SDK to query the Drive Activity Log using the following URL as the basis for the query:
https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?maxResults=1000&filters=doc_title==Design
It successfully finds documents whose title is "Design". But I'm trying to query for documents whose titles contain the word "Design" (like it does in the Admin GUI.
Is there a way to accomplish this? (I'd rather not just query everything, then filter on my side if possible)
No, as per the reference documentation there is no filter operator for "contains" matching:
https://developers.google.com/admin-sdk/reports/v1/reference/activities/list#filters

Resources