Google custom search

Discussion in 'Web Design and Development' started by cool11, Feb 10, 2009.

  1. cool11 macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
    #1
    http://www.google.com/coop/cse/

    is the first link one should visit.

    But I am not sure if it is the easiest way to go.

    I thought all I had to do is copy paste some code lines, in php, in web pages of my site.
    Instead of this, if I try to explore google custom search through the official google page, I should make a google account, make some declaration etc.

    Can you please help me to do it with ease?
    Are there any php code lines to include them in my site?
     
  2. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #2
    You're not really explaining what you want to achieve, and why you're having difficulty.

    If you want a Google custom search you sign up and get one, it's pretty much as simple as that.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    The Google custom search involves copy and pasting some HTML code, not PHP. I set it up on my site with no troubles. If you could explain your situation more we might be able to give you some guidance.
     
  4. cool11 thread starter macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
    #4
    Ι took the steps in google.com/cse. I did made an account to use it.

    First step: "Set up your search engine"
    ...
    Sites to search: domain.com (my site)

    Second step: "Try it out "
    I tried many words, included even in the index page of my site but here is what I always get:

    Web results preview close
    If these aren't the results you expected, you can go back to step 1 and make changes.

    Your search - "the word I am searching"- did not match any documents.



    So, what am I doing wrong?
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    Has your web site been indexed by Google? Using Google's webmaster tools you can find out. The custom search works off of its index of your site, so if it hasn't indexed your site yet it won't return anything as you are experiencing. The Google webmaster tools will also let you submit a sitemap file that will help Google index your site. You cans search that out, it should be easy to find out about.
     
  6. cool11 thread starter macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
    #6
    My site is indexed by google since many years.
    Where is my fault?
     
  7. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    Despite the preview not showing results during setup, have you implemented the search on your site to try out? If so, can you post a link to where you have implemented it? Maybe there's something in the code that could give a clue.
     

Share This Page