Archive of UserLand's first discussion group, started October 5, 1998.

Success!

Author:Keola Donaghy
Posted:1/23/1999; 3:28:57 PM
Topic:Search Engine XML-RPC Interface
Msg #:2423 (In response to 936)
Prev/Next:2422 / 2424

Thanks, Brent, for the help. Got this working as a final filter to my site. The one problem was that I was using ContentServer to render the site twice, once to my HD and once to a remote site, had to set the filter to ignore the local rendering and avoid a "file:///" type of URL. If anyone is interested here is my FinalFilter:

on finalFilter (adrPageTable) 
 if (adrPageTable^.template != "local")
  bundle 
    local (title = adrPageTable^.title);
    local (url = adrPageTable^.url);
    local (text = searchEngine.stripMarkup (adrPageTable^.renderedText));
    local (siteName = "NahenaheNet");
    local (siteURL = "http://www.nahenahe.net/");
    user.addToSearchEngine (title, url, text, sitename, siteURL)}};
 return (true)}

user.addToSearchEngine is essentially the example script Brent posted. Suggestions welcome.

One last question (for today :-) ) - how well does the search engine handle 8 bit characters? I'm curious about this for my Hawaiian language site which used 8 bit chars.

aloha!

kd




This page was archived on 6/13/2001; 4:47:32 PM.

© Copyright 1998-2001 UserLand Software, Inc.