Google CSE: Display result count -


I've implemented Google site search / Custom Search for your site and make it all work and formatted results and paging Okay But when you do a search on Google , it calculates how many results, calculated never <1,060,000 results (0.16 seconds)

I was wondering To get someone to do something that I can not get any documents there.

  & lt; Div id = "cse" style = "width: 100%;" & Gt; Loading & lt; / Div & gt; & Lt; Script src = "http://www.google.com/jsapi" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Google.load ('Search', '1', {language: 'en'}); Google.setOnLoadClallback (function () {var customSearchControl = new google.search.CustomSearchControl ( 'GOOGLEIDGOESHERE'); Kstmshaink control Ksetssetset (Google.search.Search.FILTERED_CSE_RESULTSET); custom search Kantrolksnpadn NoResultsString ( "No results found. ") CustomSearchControl.draw ('CSE');}, True); & Lt; / Script & gt; & Lt; Link rel = "stylesheet" href = "http://www.google.com/cse/style/look/default.css" type = "text / css" />  

you will need to use SearchCompleteCallback and Offosketed deeply buried within the JavaScript library Here, you will find the estimated ResultCount property here is a quick example which pops up a warning with counting. You want you to fulfill your needs by using jquery to insert some html with counting in any format.

  & lt; Div id = "cse" style = "width: 100%;" & gt; Loading & lt; / Div & gt; & Lt; Script src = "http://www.google.com/jsapi" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Google.load ('Search', '1', {language: 'en'}); GoogleksetOnLoadClallback (function () {var Custom Search Control = new google.search.CustomSearchControl ( 'GOOGLEIDGOESHERE'); Kstmshaink control Ksetrsetsat (Google.search.Search.FILTERED_CSE_RESULTSET); Kstmshaink control Ksetnoarsset string ( "No Results Found . ") custom Search Control Kset looking for full integration (null, function () {SearchCompleteCallback (CustomSearchControl)}); intimidating custom Srckayntrol (" CSE ");}, true); Function search full callback (custom search control) {warning (custom search control. [0] .g.cursor.estimatedResultCount); } & Lt; / Script & gt;  

Comments