jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jascpaint <Vivian.Ngu...@dsto.defence.gov.au>
Subject Similarity search question
Date Wed, 25 Jun 2008 02:24:15 GMT

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.


Mime
View raw message