Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 28135 invoked from network); 16 Aug 2007 11:16:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 11:16:15 -0000 Received: (qmail 36630 invoked by uid 500); 16 Aug 2007 11:16:12 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 36606 invoked by uid 500); 16 Aug 2007 11:16:12 -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 36597 invoked by uid 99); 16 Aug 2007 11:16:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 04:16:12 -0700 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 [192.234.253.30] (HELO nemours.org) (192.234.253.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 11:16:26 +0000 Received: from nemapp38.nemours.org ([172.19.10.55]) by nemours.org with Microsoft SMTPSVC(5.0.2195.6713); Thu, 16 Aug 2007 07:17:12 -0400 Received: from 10.20.11.90 by nemapp38.nemours.org with ESMTP (SMTP Relay); Thu, 16 Aug 2007 07:18:43 -0400 X-Server-Uuid: 35EBC2B0-EA10-409F-9923-04DFACBAF8D2 Received: from jaxmsx02.nemours.org ([10.20.9.25]) by nemmsx01.nemours.org with Microsoft SMTPSVC(5.0.2195.6713); Thu, 16 Aug 2007 07:15:43 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Search binary file before adding to repository Date: Thu, 16 Aug 2007 07:15:43 -0400 Message-ID: <2123A704743EB34295B4AA1DB09475680227C822@jaxmsx02.nemours.org> In-Reply-To: <12169667.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Search binary file before adding to repository Thread-Index: AcffqTxB9oTiW7RESTKPhdxp5qonrQATUbjg From: "Amir Mistric" To: users@jackrabbit.apache.org X-OriginalArrivalTime: 16 Aug 2007 11:15:43.0694 (UTC) FILETIME=[C961FEE0:01C7DFF6] X-WSS-ID: 6ADAED192G061817-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: AAAAAQAAA+k= X-Language-Identified: TRUE X-Virus-Checked: Checked by ClamAV on apache.org How about creating a "queue" workspace to which you will add a file no = matter what. You can then search the files in that workspace and delete them if they = don't meet your needs or move them into "production" workspace if they = do... This is not perhaps what you want (searching in memory) but it could = work. Thanks =20 Amir =20 > -----Original Message----- > From: bilobag [mailto:bilobag@hotmail.com]=20 > Sent: Wednesday, August 15, 2007 4:29 PM > To: users@jackrabbit.apache.org > Subject: Re: Search binary file before adding to repository >=20 >=20 > Well the problem is that I am not allowed to add this file to=20 > the repository for security reasons if it has one of the=20 > specified words. So I need a way to search the file in=20 > memory....then prevent the file from being added to the=20 > repository if it has one of the specified words. Any ideas? >=20 >=20 >=20 > Anton Gavazuk wrote: > >=20 > > I suggest If you know the set of certain keywords before=20 > you add file=20 > > to repository you can build some type of marker or index on these=20 > > keywords on the file and put it (marker) in property of=20 > node with file > >=20 > > 2007/8/15, bilobag : > >> > >> > >> Hi everyone, does anyone know of a way that I can search a binary=20 > >> file before it gets added and indexed in the repository? =20 > I need to=20 > >> check to make sure a file does not have certain keywords=20 > before I can=20 > >> add the file. I think I can use Lucene, but I'm not sure the best=20 > >> way to do it. Ideally i'd like to search the file using the text=20 > >> extractors that I already have configured in my search index. Any=20 > >> ideas? > >> -- > >> View this message in context: > >>=20 > http://www.nabble.com/Search-binary-file-before-adding-to-repository- > >> tf4274313.html#a12165905 Sent from the Jackrabbit - Users mailing=20 > >> list archive at Nabble.com. > >> > >> > >=20 > >=20 >=20 > -- > View this message in context:=20 > http://www.nabble.com/Search-binary-file-before-adding-to-repo sitory-tf4274313.html#a12169667 > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. >=20 >=20