You might want to look at Solr (http://lucene.apache.org/solr) which adds a web layer onto Lucene - you can then redirect calls form the search box to an instance or Solr and either XSLT the result or deal with it in a Click component. I've done both and it's pretty easy. Solrj is their Java API - not used that, but that would allow closer coupling if that's what you want. Geoff
2009/2/28 Malcolm Edgar <[email protected]> > Yes the Lucene implementation sounds like a grat way to do this. > > regards Malcolm > > > On Sat, Feb 28, 2009 at 5:01 AM, Bob Schellink <[email protected]> wrote: > >> Hi Malcolm, >> >> Malcolm Edgar wrote: >> >>> A great feature to add to click-examples is a search field in the top >>> right hand side of the banner. where you can enter in some free text and it >>> will display a search results page which lists all the references in the >>> application source code (Java, HTML, XML, CSS) and links through to a the >>> source viewer page. >>> >>> When the application start up all the source code could be loaded a map >>> in memory which could then be searched using a brute force search. >>> >> >> >> Nice idea. We could perhaps look at Lucene which uses an inverted index >> and also provide features such as ranking algorithm and search string >> highlighting. And since fulltext searching is quite common for websites, it >> might be a useful example as well. >> >> kind regards >> >> bob >> > >
