What is the best way to code a search for my website developed in tapestry?
I have the following code in my layout.tml:
<div id="search" >
<form method="get" action="#">
<div>
<input type="text" name="s" id="search-text" value="" />
<input type="submit" id="search-submit" value="GO" />
</div>
</form>
I am just unsure of how to actually implement the search.
If anyone can help or point me in the right direction it would be greatly appreciated.
How to create a search engine depends completely on what type of site you have.
If you’ve got a blog or other collection of articles that are accessible to anyone you could simply add Google SiteSearch and let Google index your site.
If you’ve got a product database with titles/descriptions, you should probably go for Lucene. If you’re already using Hibernate, it’s easy to use Lucene through Hibernate Search (there’s also book).