Mobile app version of vmapp.org
Login or Join
Cofer257

: Google Custom Search gives different result number for same query We are using Google Custom Search and we have found that often the total results iterates between two values, even for the same

@Cofer257

Posted in: #GoogleCustomSearch

We are using Google Custom Search and we have found that often the total results iterates between two values, even for the same query. The different values can be slightly different or more than double.

The parameters I am using look like this:
www.googleapis.com/customsearch/v1? q=something
cx=XXXXXXXXXX
lr=lang_en
siteSearch=www.mydomain.com
start=1
fields=context%2Citems%28fileFormat%2CformattedUrl%2Clink%2Cpagemap%2Csnippet%2Ctitle%29%2Cqueries%2CsearchInformation%28searchTime%2CtotalResults%29%2Cspelling%2FcorrectedQuery
key=YYYYYYYYYYYYYYY
filter=0


This is problem because of calculating the number of result pages. How can I get the same results for the same query?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer257

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

Google varies its results all the time and there is nothing you can do about it.

There are several main reasons why this happens:


Google does A/B testing. They test how users react to sites ranking very differently. For example they may move a site up from page 3 temporarily to measure its click through rate when it is in the 3rd position.
Google has multiple data centers that get updated data and code at different times. In a case like this, one data center will likely serve completely different results for some queries than other data centers. As the code and data get rolled out (usually over the course of a week or two), all the Google data centers will show the same results. While this is happening, results may swing wildly between the two because queries may be directed to a different data center each time.
Google uses your search history and preferences when building search results. The results that you see may be very different than what your friend sees.


In this case it sounds like the "multiple data center" issue is at play. The results you are interested in will likely stabilize over the next couple weeks.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme