?
Solved

Google API in ColdFusion

Posted on 2011-10-06
5
Medium Priority
?
245 Views
Last Modified: 2012-05-12
Hi,
I have a form field that I'd like to pass to Goggle (or some search engine) and get the results back using CFHTTP so I can use the results on my page (not Googles).

Does anyone know how to do this? I see many posts on integrating Google with your site but it is indexing your static pages.  This is not what i want.

To be specific, I need to seach through an Organization Name column based on what a user keys and determine if it's in our table or ask the user if it's new.  I'd like to search with the native string and if nothing is found try the "Google suggestion".

When you misspell something in a Google Search, it come back with "Showing results for xxxxxxxxxxxx".
Is ther an API where I can pass a search argument and get that "Showing results for xxxxxxxxxxxx"?

Thanks in advance,
hefterr
0
Comment
Question by:hefterr
  • 4
5 Comments
 
LVL 15

Expert Comment

by:Tomarse111
ID: 36929195
Google does not allow outside HTTP access to its results; you'll get some response back that says something along the lines of "This ours, get your own".

You can however integrate Google into your site via this api:

http://www.google.co.uk/sitesearch/

Easy to use and gives you the full search listing back.
0
 
LVL 1

Author Comment

by:hefterr
ID: 36930661
Hi Tomarse111,
This integration is not what I am looking for as it it is only using data on your pages.  I ultimately need to search a data base column in a table for a "fuzzy match".  I don't think they search your databases? (we are using SQL Server 2005)

For example
Someone keys in an organization name of :
Microsift (misspelled)

I want to find Microsoft.  If you key this into most search engines, they come back with:
Showing results for microsoft

They have the "fuzzy logic" search that I'd like to use on my site.  Or have them be able to do the same against my tables?

Any other search engines?  Any ideas?

I've looked into "SQL Server Full Text Search"  but it misses typos.

hefterr
0
 
LVL 1

Author Comment

by:hefterr
ID: 36930883
Is there an interface with Yahoo that i could use?  I found this link :
http://developer.yahoo.com/coldfusion/howto-reqRestCF.html

What do you think?
0
 
LVL 1

Accepted Solution

by:
hefterr earned 0 total points
ID: 36942445
Hi Tomarse111,
I don't think it's possible to do what i wish.  Do you mind if I just close out this question.

 Your reference was how to integrate google into your site so that static pages could be searched via a "site search form field.  This is not what I was looking for.


hefterr
0
 
LVL 1

Author Closing Comment

by:hefterr
ID: 36975300
My request could not be acommplished.  I had to research this myself.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Screencast - Getting to Know the Pipeline

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question