Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 25869 invoked from network); 5 Nov 2007 10:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2007 10:40:56 -0000 Received: (qmail 57484 invoked by uid 500); 5 Nov 2007 10:40:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 57448 invoked by uid 500); 5 Nov 2007 10:40:42 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 57439 invoked by uid 99); 5 Nov 2007 10:40:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 02:40:42 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 10:40:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IozNY-0007kv-Rp for dev@jackrabbit.apache.org; Mon, 05 Nov 2007 02:40:24 -0800 Message-ID: <13584526.post@talk.nabble.com> Date: Mon, 5 Nov 2007 02:40:24 -0800 (PST) From: Mike olo To: dev@jackrabbit.apache.org Subject: full text search MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mitesh9009@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org hi all, i want to do the search in the repository with full text. pls let me know how can i do it. i m using jackrabbit.1.3.3. here is my code: Repository r = new TransientRepository(); SimpleCredentials cred = new SimpleCredentials("userid", "" .toCharArray()); Session session = r.login(cred, null); try { Workspace ws = session.getWorkspace(); Node rn = session.getRootNode(); Node fileNode = rn.addNode(resObj.getID()); fileNode.addMixin("mix:versionable"); fileNode.setProperty("jcr:file", new String(resObj .getName())); fileNode.setProperty("jcr:user", new String(resObj .getUser())); fileNode.setProperty("jcr:content", new ByteArrayInputStream(resObj.getDocument())); Calendar lastModified = Calendar.getInstance(); fileNode.setProperty("jcr:lastModified", lastModified); session.save(); fileNode.checkin(); } catch (Exception e) { throw new CommandException(e); } finally { session.logout(); } Thanks, MIke -- View this message in context: http://www.nabble.com/full-text-search-tf4750749.html#a13584526 Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.