Jump to content
  • Advertisement
Sign in to follow this  
Mad_Coder

Google AJAX API Search Results

This topic is 3883 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to use Google’s Ajax search API to allow a website to search for content specifically to the site instead of from other sites including Google’s results. Which method of one of Google AJAX Search API class hierarchy allows me to specify that I want Google to search for content only on my site? PS: I tried to comprehend the class hierarchy first and then tried posting on Googles’ API board, but no one seemed to know or could parse what I was asking.

Share this post


Link to post
Share on other sites
Advertisement
I've not used the recent Google APIs, but from what I understand, you should use the GSearch class method .setQueryAddition("site:<yourdomain.com>"); where <yourdomain.com> is your site domain.


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!