jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Text search through query
Date Tue, 06 Nov 2007 10:37:56 GMT
Mike olo wrote:
> QueryManager qm = ws.getQueryManager();
> Query q =
> qm.createQuery("//*[jcr:like(@jcr:content,'%itesh%')]",Query.XPATH);
> QueryResult result = q.execute();
> NodeIterator it = result.getNodes();
> while (it.hasNext()){
> Node n = it.nextNode();
>         System.out.println(n.getName());
>         System.out.println(n.getProperty("jcr:file").getString());
>         System.out.println(n.getProperty("jcr:checkOutUser").getString());
> }

how does your node type look like?

what is the type of the jcr:content property?

regards
  marcel

Mime
View raw message