I am first trying the standard web search, image below, which returns 476 results
I have the custom Google ruby api client and have the custom search engine and api key setup.
This is my query
client = Google::APIClient.new(application_name: 'Foo',
application_version: 1,
:authorization => nil)
search = client.discovered_api('customsearch')
result = client.execute(
search.cse.list,
'key' => 'xxxxx.xxxx_xxxxx_mykey',
'q' => 'chateau palmer',
'siteSearch' => 'nytimes.com',
'siteSearchFilter' => 'i',
'cx' => 'my_custom_Search key'
)
total = result.data.queries.request.collect {|i| i['totalResults']}
The result i get are completely different in count, what can be the reason?