incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx" <>
Subject Re: Adding a little structure
Date Wed, 11 Jun 2008 05:21:16 GMT
You also may want to look at


On Wed, Jun 11, 2008 at 12:22 AM, Murray Altheim <> wrote:
> Amit Prahesh wrote:
> [...]
>> Now, is it possible, out of the box, or via plugins, to dynamically
>> sift through the pages (like Employee*) and get information from them?
>> Like creating a list of employees grouped by department, or maybe
>> reporting their salaries, etc.
> As Janne mentioned, search is likely your best bet, if simplicity
> and not wanting to do additional development work are your priorities.
> The downside of search is that it is full text and does not take into
> account the context of a given word or phrase, i.e., if one searches
> on a term the search engine will find it anywhere on any wiki page.
> There is no current facility for searching on fields.
> I don't have any code available for distribution, but it's not
> particularly difficult to modify JSPWiki for fielded searches. The
> way I've approached this is to have a plugin that declares page-level
> metadata that is picked up the Lucene search engine as fields, then
> one can search on those fields.
> For example, a plugin might declare (via a form) the following metadata:
>   __field name__    __field value__
>   title          :  The Hound of the Baskervilles
>   author         :  Sir Arthur Conan Doyle
>   language       :  English
> You'd have your plugin declare these name-value pairs as page-level
> metadata, extend to
> read the page metadata and add that as new Document fields, then your
> users can search using
>   title:baskervilles  author:doyle
> etc.
> This isn't a trivial solution but it's not enormously difficult either.
> Lucene's indexing functionality is relatively easy to extend. Using
> this method one could use JSPWiki as a bibliographic or employee
> database, etc.. where each page (i.e., those containing fielded data)
> can serve as a database record. You could then add an additional
> search JSP to make searching on those fields easier.
> Murray
> ...........................................................................
> Murray Altheim <murray07 at>                           ===  = =
>                                     = =  ===
> 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

View raw message