views:

23

answers:

2

Hi, I have been trying to create a new google custom search engine, but when I try some query,the search engine it is not giving me the expected search result.On some queries it is working fine, but on other queries, it says"no result".

I tried adding the URL of the website that I wanted to search for, but there are certain pages and keywords that are not coming up in the search result when I try to search for the keyword of that page. I tired adding both the main page URL and the URL of the sub page that I want to search for, but nothing is working. There are some sub pages to the main URL that are coming in the search result.

A: 

Some webpages instruct search engines how to index their webpage in a file called robots.txt.

For example: http://stackoverflow.com/robots.txt

(If a site has one it should be under http://URL/robots.txt directly after the domain name)

If the robots.txt for the site you are trying to search excludes some parts of its site from being indexed, it could be the source of your problem.

Dan
A: 

this happened to me too. It is because the url you specify to google has to match the server address where your site is stored. For example, I made a site with google custom search (mainstreetbd.com) and when I tested it on my server, the google search returned no results. But when I did it on the specified url, it works fine.

JCHASE11
@jchase11: I am giving it the URL with the specified server address, but still it isn't working the way it should??
iecut
Can you send me a URL?
JCHASE11