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

on index (title, url, bodyText, siteName, siteUrl, client, flShowText, lastModDate=nil, indexName=nil) {
	<<Index one page.
	<<Make sure this is a search engine server.
	if not config.mainResponder.prefs.flSearchEngine {
		return (false)};
	<<Make sure Index.root exists and is open. (indexName);
	local (indexPath = (indexName));
	msg ("Search Engine: Indexing: " + url);
	if lastModDate == nil {
		lastModDate = ()};
	<<De-index this page. (url, indexName:indexName);
	<<Build the table of info about this page. (bodyText, title, url, lastModDate, siteName, siteUrl, flShowText, indexName);
	<<Add this page to the index. (url, title, bodyText,, indexName);
	<<Log this index. (url, title, siteName, siteUrl, client, indexName);
	msg ("");
	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.