incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murray Altheim <murra...@altheim.com>
Subject Re: Viewer for generated pages - Lucene refresh
Date Fri, 29 Aug 2008 21:44:48 GMT
weberjn wrote:
> We'd like to export some information from UML models into Wiki pages and use
> JSPWiki as read-only viewer for it. The result should be similar to Javadoc
> (but it is not about Java).
> It seems to be easier to generate wiki pages than to generate static HTML
> pages, does it?
> 
> I see two problems here:
> 
> o How does JSPWiki know that there are new or changed pages in the
> file-system and especially, how do you make Lucene see the changes? Is there
> an API (e.g. a servlet) that you can call to make JSPWiki reload its page
> cache?

Juergen,

I often generate wikitext pages from programs for viewing via
JSPWiki. Works like a charm.

For reindexing Lucene, you can either use the ReindexPlugin:

   http://purl.org/ceryle/wiki/Wiki.jsp?page=ReindexPlugin

or check out what it does and duplicate that. If you don't want
users to be able to force a reindex you could add an authorisation
code check as found in HelloWorld plugin:

   http://purl.org/ceryle/wiki/Wiki.jsp?page=HelloWorldPlugin

It's pretty simple really.

Murray

...........................................................................
Murray Altheim <murray07 at altheim.com>                           ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

       Boundless wind and moon - the eye within eyes,
       Inexhaustible heaven and earth - the light beyond light,
       The willow dark, the flower bright - ten thousand houses,
       Knock at any door - there's one who will respond.
                                       -- The Blue Cliff Record

Mime
View raw message