Jump to content
Xisto Corporation
Ahsaniqbalkmc

Modifying Google Custom Search: Reducing The Number Of Results To 5

Recommended Posts

I have recently modified the google custom search engine on my website. Now instead of displying results on a different page, it displays the results on the same page. I am not sure about this, but I think it uses JavaScript for this thing. It means that people having javascript disabled are not going to see the results but that's ok with me because there are only a few people who have javascript disabled.The real problem I want to talk about in this post is that I am unable to modify the search engine to make it display 5 results instead of the default 10. I am pretty sure that this needs to be done from within the javascript of the engine but I have two issues:1) I am not very good at javascript, however, I think I can still arrange some workarounds or use the information online to achieve my goals.2) I don't know how to access the javascript of the engine and then modify it and make the engine work on my custom script.Any help in solving the above two issues is appreciated.

Share this post


Link to post
Share on other sites

There is an option "number of results per page" which defaults to 10, but you can change it to 5. It's in the "options" settings of the google page. It does not work for "instant search"

Share this post


Link to post
Share on other sites

I am not talking about google's own search at google.com. I am talking about Google's custome search for websites. I have created a google custom search engine specifically for my website. When I was modifying the engine, there was no option of how many results do the webmaster want. And there are no settings that come with the custom search engine so that I could go to the preferences page and set the number of results to 5.I think I have to edit the javascript that runs the engine. I may be wrong.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.