jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomasg <thomasgascoi...@hotmail.com>
Subject Searching document text with jcr:like
Date Thu, 11 May 2006 09:51:14 GMT


I've just been looking at a some more typical queries that our system will
need to run and am finding a problem using jcr:like.
A query such as this works fine:
String queryString = "//element(*, axxia:resource)[jcr:like(@axxia:title,

But how can you specify that you want the document text to be like
'%inking%Java%'? Is it currently the case that jcr:like can only search
properties and not the document text at all?

This seems to be a very similar problem to that with jcr:contains in that
you can't currently restrict the search to the document text only. Using
jcr:contains the situation is ok since jcr:contains(., 'word') searches the
document text, even though you can't specify 'ONLY the document text and not
other properties'.

Any advice would be appreciated.
Thanks, Thomas
View this message in context: http://www.nabble.com/Searching-document-text-with-jcr%3Alike-t1599542.html#a4337562
Sent from the Jackrabbit - Dev forum at Nabble.com.

View raw message