Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 13369 invoked from network); 6 Jul 2008 19:46:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2008 19:46:45 -0000 Received: (qmail 16052 invoked by uid 500); 6 Jul 2008 19:46:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 16007 invoked by uid 500); 6 Jul 2008 19:46:40 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 15996 invoked by uid 99); 6 Jul 2008 19:46:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 12:46:40 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,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; Sun, 06 Jul 2008 19:45:48 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KFaBV-0003Lo-32 for java-user@lucene.apache.org; Sun, 06 Jul 2008 12:46:09 -0700 Message-ID: <18305778.post@talk.nabble.com> Date: Sun, 6 Jul 2008 12:46:09 -0700 (PDT) From: starz10de To: java-user@lucene.apache.org Subject: RE: Index different files in different folders in lucene In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: farag_ahmed@yahoo.com References: <18295066.post@talk.nabble.com> <18300833.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org John, Thanks for your kind help. I will try to modify the source code. John Griffin-3 wrote: > > Starz, > > If you are using the LuceneDemo jar to index your docs its default > behavior > is to recursively index all files to an 'index' directory from a > 'root-directory' you specify. So what you are trying to do won't work > unless > you modify the source to do what you want. It would not be that difficult > to > do. > > JohnG. > > -----Original Message----- > From: starz10de [mailto:farag_ahmed@yahoo.com] > Sent: Sunday, July 06, 2008 4:34 AM > To: java-user@lucene.apache.org > Subject: RE: Index different files in different folders in lucene > > > hi John , > > Is important to know my code ? I though it is general question! I use > lucene > to index some files in one folder, but in my case I have different files > (text files) in two different folderes and I though may be lucene could > index both in same time. I am just lucene at it is and I dont have any > special code. just indexing , I need this because i have an arabic and > english files and i dont want to index them in one index as it make no > sense > as they are not related , so when you like to look for english string you > dont need to look for it in arabic and so on. My question is it possible > for > lucene to index multiple folderes in same time and put them in several > indexes? > thanks > > John Griffin-3 wrote: >> >> Starz, >> >> How about your code so we can see what you are doing? We're flying blind >> here. >> >> John G. >> >> -----Original Message----- >> From: starz10de [mailto:farag_ahmed@yahoo.com] >> Sent: Saturday, July 05, 2008 12:41 PM >> To: java-user@lucene.apache.org >> Subject: Index different files in different folders in lucene >> >> >> Hi all, >> I am new to lucene , is it possible to Index different files in different >> folders in lucene >> >> for examples , i have two folderes a and b , each contain several files. >> >> in lucene args i wrote : c:\a\ , c:\b\ but it does index only the >> first >> files in folder A and it doesnt index any files in folder b. >> is there any way to do that or i must put all files in one folder which >> is >> not nice way to do as i have different types of files and need them to be >> seperated. >> thanks in advance >> -- >> View this message in context: >> > http://www.nabble.com/Index-different-files-in-different-folders-in-lucene-t >> p18295066p18295066.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/Index-different-files-in-different-folders-in-lucene-t > p18295066p18300833.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > > -- View this message in context: http://www.nabble.com/Index-different-files-in-different-folders-in-lucene-tp18295066p18305778.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org