There's one feature of the Monastery that is puzzling me. Does the Keyword Notelet do anything useful, or is it something that seemed like a good idea at the time?

I could imagine the Super search form including it at some stage - however, I can understand that using it to build indices in the database could place too much of an overhead on the site (once it starts being used).

How about a compromise? How about adding a keywords textbox to the super search form, which serves to qualify, i.e. filter the results of the search.

This could enable monks to bookmark useful terms for future searches.

I imagine a syntax within the box like:

expr endofstring expr :- comby [ '|' comby ...] ; comby :- term [ '&' term ...] ; term :- '(' expr ')' | /\w+/ ;
Any thoughts?

Replies are listed 'Best First'.
Re: Wherefore the keyword notelet?
by BUU (Prior) on Dec 03, 2002 at 03:41 UTC
    For those of us who don't speak prolog, what the hell does your example mean?
      Apologies to BUU and others who didn't understand the syntax of my grammar.

      It's not actually Prolog, though I did borrow the :- operator; it's roughly based on the module Parse::RecDescent, but I have taken a few liberties - this is pseudocode.

      I'll have a go at putting this into into English:

      • We are looking for an expr followed by an end of string
      • An expr is a list of comby separated by '|'
      • A comby is a list of terms separated by '&'
      • A term is either a '(' followed by an expr followed by a ')', or it is a word.

      Hope this helps