jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Similarity search question
Date Wed, 25 Jun 2008 03:47:26 GMT
Are you sure you added <param name="supportHighlighting"
value="true"/> to the query handler in your workspace.xml? Maybe you
changed only repository.xml (whose Workspace section acts only as a
template for new workspaces).... common glitch ;-)

Regards,
Alex

On Tue, Jun 24, 2008 at 10:24 PM, jascpaint
<Vivian.Nguyen@dsto.defence.gov.au> wrote:
>
> Hi all,
> I am currently testing out similarity search and rep:similar function as per
> http://wiki.apache.org/jackrabbit/SimilaritySearch. However I keep getting
> javax.jcr.query.InvalidQueryException: Unsupported function: rep:similar
>
> Could anyone please tell me what I am doing wrong here?
>
> I use Jackrabbit 1.4.4 and queries I used are:
> Query q = qm.createQuery ("//*[rep:similar(., '/test.txt/jcr:content')]",
> Query.XPATH);
> and
> Query q = qm.createQuery ("//element(*, nt:resource)[rep:similar(.,
> '/test.txt/jcr:content')]", Query.XPATH);
>
> --
> View this message in context: http://www.nabble.com/Similarity-search-question-tp18103715p18103715.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>



-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message