troubleshooting Question

Google.cfc

Avatar of pigmentarts
pigmentartsFlag for United Kingdom of Great Britain and Northern Ireland asked on
Web Servers
4 Comments1 Solution227 ViewsLast Modified:
using google.cfc found at: http://surfmind.com/lab/cf/google/

search the results like this..

<cfinvoke component="google" method="search" returnvariable="googleResults" >
                          <cfinvokeargument name="q" value="#form.keyword#"/>
                          <cfinvokeargument name="start" value=1/>
                          <cfinvokeargument name="maxResults" value="10">
                          <cfinvokeargument name="key" value="eQgLAotQFHIROZH7prl7ozQj2A74N+r3">
                        </cfinvoke>
                  
                  <cfset googlecount = 0>
                  <cfloop index="thisElement" from="1" to="#ArrayLen(googleResults)#">
                  <cfset googlecount = googlecount + 1>
                              
                              <cfif find("#form.website#", googleResults[thisElement].url)>
                                    <cfset sucess = true>
                                    
                                    <cfbreak>
                              </cfif>
                              
                  
            
                  </cfloop>


the i outprint the one i am after like this:

<b>Page Title:</b> #googleResults[thisElement].title#<br />

but there are a few things in the cfc i have spotted and would like to know how i pull them with the resluts above these are...


numruns
TotalResultsCount
SearchTime

can this be done any how? many thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros