Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.mainResponder.testing.search
local (searchRequest);
new (tableType, @searchRequest);
<<local (flProfile = true)
local (flProfile = false);
if flProfile {
script.startProfile (true)};
searchRequest.searchString = "\"fat pages\"";
searchRequest.start = 1;
searchRequest.maxHitsPerPage = 50;
searchRequest.fname = "default";
webBrowser.displayText (mainResponder.search.server.doSearch (@searchRequest));
if flProfile {
try {delete (@temp.searchProfile)};
script.stopProfile (@temp.searchProfile);
edit (@temp.searchProfile)};
webBrowser.bringToFront ();
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.