Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D65D64FD1 for ; Thu, 7 Jul 2011 12:00:58 +0000 (UTC) Received: (qmail 53783 invoked by uid 500); 7 Jul 2011 12:00:58 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 53630 invoked by uid 500); 7 Jul 2011 12:00:57 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 53445 invoked by uid 99); 7 Jul 2011 12:00:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 12:00:56 +0000 X-ASF-Spam-Status: No, hits=2.1 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of raaja09@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 12:00:49 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QenFt-0006kx-5H for users@jackrabbit.apache.org; Thu, 07 Jul 2011 05:00:29 -0700 Date: Thu, 7 Jul 2011 05:00:29 -0700 (PDT) From: "g. raaja" To: users@jackrabbit.apache.org Message-ID: <1310040029147-3651277.post@n4.nabble.com> Subject: What I have to use instead of Query.XPATH MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, 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 = qm.createQuery("/jcr:root[rep:spellcheck('"+content+"')]/(rep:spellcheck())", Query.XPATH);* 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-I-have-to-use-instead-of-Query-XPATH-tp3651277p3651277.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.