cancel
Showing results for 
Search instead for 
Did you mean: 

Searching with XPath Query problem with jcr:contains

jdeus
Champ in-the-making
Champ in-the-making
Hello,
I'm using Alfresco 1.4 community with winXP.
I try to implement simple search using Xpath Query.
The problem is that when I execute my query I don't get the result that I expect.
I do this

query = queryManager.createQuery("//app:company_home/cm:infodoc/*[(jcr:contains(.,'"+nom+"')]",Query.XPATH);

This query don't give the correct result, it give me not all the document it should. Is there somebody who have this kind of problem?
thanks,
Jérôme D.
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

Can you describe your query in words? Are you trying to do mandatory matches or wildcards??

Andy