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

Reply via email to