> Marcel Reutegger wrote:
> the primary use case is in fact a 'did you mean' functionality.
>
> e.g. if a query does not return the expected results (too few
> results, or whatever the application thinks is not
> appropriate) you would then execute the following query:
>
> /jcr:root[rep:spellcheck('softeware')]/(rep:spellcheck())
>
> this will always return the root node of the workspace
> because rep:spellcheck() with a string always evaluates to
> true. the string literal is the same as the one you can pass
> to a jcr:contains() function. the function rep:spellcheck()
> without arguments is a pseudo property which refers to the
> previous function and returns a suggestion for the misspelled
> statement or null if the statement is correctly spelled.
Thanks for the explanation Marcel (I have been on holiday hence my late
reaction)
Regards Ard
>
> regards
> marcel
>