Monday, November 08, 2010 at 12:04 AM.

on logSearch (adrSearch, numHits, client, url) {
		<<8/1/02; 7:06:18 PM by JES
			<<If is false, don't do anything.
		<<Log to a guest database. PBS 3/18/99
	if not {
		return (true)};
	if not {
		return (true)};
	if not defined (adrSearch^.origSearchString) {
		return (true)};
	local (logName = "Search Engine");
	local (adrItem = log.addToGuestDatabase (logName, flHourlyRoll:true));
	adrItem^.searchString = adrSearch^.origSearchString;
	adrItem^.hits = numHits;
	adrItem^.client = client;
	adrItem^.url = url;
	if defined (adrSearch^.index) {
		adrItem^.index = file.fileFromPath (adrSearch^.index)};
	return (true)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.