Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Bootstrap HTML website site search

Posted on 2014-03-26
8
1,997 Views
Last Modified: 2014-03-27
I just made a bootstrap framework html site and now want to add a site search to it.  I am open to suggestions on the best way to go with this.
0
Comment
Question by:solsticeint
  • 4
  • 2
  • 2
8 Comments
 
LVL 18

Expert Comment

by:Rartemass
ID: 39958054
Simplest method is to use a Google search.
Add a form like below and change the value of yourdomain.com to whatever site you want to search.

<form name="google-search" method="get" action="http://www.google.com/search">
      <input type="hidden" name="sitesearch" value="http://yourdomain.com/" />
      <input name="q" type="text" />
      <input type="submit" name="sa" value="Google" />
</form>

There are other methods but this is simple and free.
0
 

Author Comment

by:solsticeint
ID: 39958063
This is what I was looking at.  Seems like the easy way.  Any other options?
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39958088
If you use google custom search, you can integrate with your site instead of pushing the results outside of your site https://www.google.com/cse/
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 18

Accepted Solution

by:
Rartemass earned 500 total points
ID: 39958092
You can install a Pearl search script but need access to the webserver for that.
http://www.thefreecountry.com/perlscripts/searchengines.shtml

PHP option
http://www.sphider.eu/

Javascript option
https://swiftype.com/site-search

There are a lot of these available either for free or paid. Test out a free and see what is best for your requirements.
0
 
LVL 18

Expert Comment

by:Rartemass
ID: 39958094
The issue I have with Google CSE is that it comes with Google branding and ads and its costs $100 per year to remove them.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39958111
$100 is nothing.  You are not using your resources, and your results from something else are not going to beat google's.   There is also custom search which is free.  https://developers.google.com/custom-search/  The only branding is in the search box and it is muted and again on the top right side.    

Here is the demo  http://googlecustomsearch.appspot.com/elementv2/two-page_v2.html
0
 
LVL 18

Expert Comment

by:Rartemass
ID: 39958147
While I agree Google search is powerful, some people won't be able to justify a $100 cost, especially when there are free alternatives.
I guess it comes down to server resource cost vs Google's cost based on the site's needs.
0
 

Author Closing Comment

by:solsticeint
ID: 39960358
Thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 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