jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: spellchecker
Date Mon, 22 Oct 2007 13:05:20 GMT


> 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
> 

Mime
View raw message