jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "g. raaja" <raaj...@gmail.com>
Subject what we have to use instead of Query.XPATH
Date Thu, 07 Jul 2011 06:21:21 GMT

Its showing Query.XPATH is deprecated and in API its showing 

*Deprecated. As of JCR 2.0, this language is deprecated.*

my code is: This is for adding spellcheck

*QueryManager qm = jcrSession.getWorkspace().getQueryManager();
Query query =

and in another condition

*QueryManager qm = jcrSession.getWorkspace().getQueryManager();
stmt1 ="//element(*,nt:resource)[jcr:contains(.,'"+content+"')]";
Query q = qm.createQuery(stmt1, Query.XPATH)*;

I am not getting an idea what I have to use instead of this.

Please guide me what to use in the place of this Query.XPATH.

Thanking you.

--raaja g

View this message in context: http://jackrabbit.510166.n4.nabble.com/what-we-have-to-use-instead-of-Query-XPATH-tp3650763p3650763.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

View raw message