Hi Prasanta,

can you please create a small test case and create a jira issue? thanks.

regards
 marcel

prasantamandal_cse wrote:
Ard,
I am using jcr 1.3 version.
It is not working properly. Please tell me another suggestion.

Regards,
Prasanta


Ard Schrijvers wrote:
Which version do you use?
I just tested your example with the trunk, and works fine.

Do realize by the way that % prefix in jcr:like can be *very* slow.

Regards Ard

I am trying to do wildcard searches against my repository, but I am
getting odd results from the system.

In my repository, I have one node with an attribute @name which has the
value 'restroom', and all my searches are with XPath.

Now I have found the follwing results:
//*[jcr:like(@name,'%restro%')
Here 'restr0' is a prefix of the original string 'restroom'. It returns 1
result.

I want to find out the record if I supply the query string as
//*[jcr:like(@name,'%stro%') But it returns 0 result.

According to the jcr:like specification the above query should return 1 result, because 'stro' is a substring of 'restroom'. % indicates any string of zero or more characters.But the
query returns 0 result.How I may solve the problem?

Please help me.
--
View this message in context:
http://www.nabble.com/jcr%3Alike-is-not-working-properly-tf4323514.html#a12312189
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.





Reply via email to