Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 29773 invoked from network); 5 Nov 2007 11:02:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2007 11:02:19 -0000 Received: (qmail 81817 invoked by uid 500); 5 Nov 2007 11:02:07 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 81447 invoked by uid 500); 5 Nov 2007 11:02:06 -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 81430 invoked by uid 99); 5 Nov 2007 11:02:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 03:02:06 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.133.51.241] (HELO mail.hippo.nl) (213.133.51.241) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 11:02:30 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: full text search X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 5 Nov 2007 12:01:42 +0100 Message-ID: In-Reply-To: <13584526.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: full text search Thread-Index: AcgfmFmxe13nTZbjTE+RTjWXSCYzkQAAkl2A References: <13584526.post@talk.nabble.com> From: "Ard Schrijvers" To: , X-Virus-Checked: Checked by ClamAV on apache.org Hello Mike, See http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Workspace.htm l#getQueryManager() and see in http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html specification how to search with xpath or sql.=20 I crosspost to user-list as well, because this is the appropriate list for these kind of questions. pls continue thread on that list. Regards Ard >=20 > hi all, >=20 > i want to do the search in the repository with full text. pls=20 > let me know how can i do it. i m using jackrabbit.1.3.3. >=20 > here is my code: >=20 > Repository r =3D new TransientRepository(); > SimpleCredentials cred =3D new=20 > SimpleCredentials("userid", "" > .toCharArray()); > Session session =3D r.login(cred, null); > try { > Workspace ws =3D=20 > session.getWorkspace(); > Node rn =3D session.getRootNode(); >=20 > Node fileNode =3D=20 > rn.addNode(resObj.getID()); > =09 > fileNode.addMixin("mix:versionable"); > =09 > fileNode.setProperty("jcr:file", new String(resObj > .getName())); > =09 > fileNode.setProperty("jcr:user", new String(resObj > .getUser())); > =09 > fileNode.setProperty("jcr:content", > new=20 > ByteArrayInputStream(resObj.getDocument())); > Calendar lastModified =3D=20 > Calendar.getInstance(); > =09 > fileNode.setProperty("jcr:lastModified", lastModified); > session.save(); > fileNode.checkin(); > } catch (Exception e) { > throw new CommandException(e); > } finally { > session.logout(); > } >=20 >=20 > Thanks, > MIke > -- > View this message in context:=20 > http://www.nabble.com/full-text-search-tf4750749.html#a13584526 > Sent from the Jackrabbit - Dev mailing list archive at Nabble.com. >=20 >=20