Here is how to search multiple indexes

2004-07-20 Thread Don Vaillancourt
the appropriate value to pass indexes[i] = new IndexSearcher(blah); } // This is the part which allows you to search multiple indexes Searcher searcher = new MultiSearcher(indexes); // do the search Analyzer analyzer = new StandardAnalyzer(); Query query = QueryParser.parse(express

RE: search multiple indexes

2004-07-01 Thread Toby Tremayne
thank you muchly - I'll poke about with the test cases and see how I go -Original Message- From: Peter M Cipollone [mailto:[EMAIL PROTECTED] Sent: Friday, 2 July 2004 10:35 AM To: Lucene Users List Subject: Re: search multiple indexes Toby, Check http://jakarta.apache.org/lucene

Re: search multiple indexes

2004-07-01 Thread Peter M Cipollone
for all the key classes. Pete - Original Message - From: "Toby Tremayne" <[EMAIL PROTECTED]> To: "'Lucene Users List'" <[EMAIL PROTECTED]> Sent: Thursday, July 01, 2004 7:16 PM Subject: RE: search multiple indexes > > thanks for that - I&

RE: search multiple indexes

2004-07-01 Thread Toby Tremayne
lto:[EMAIL PROTECTED] Sent: Friday, 2 July 2004 9:24 AM To: Lucene Users List Subject: Re: search multiple indexes Stefan Groschupf wrote: >> http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/ >> MultiSearcher.html >> > 100% Right. > I personal found code

Re: search multiple indexes

2004-07-01 Thread David Spencer
Stefan Groschupf wrote: http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/ MultiSearcher.html 100% Right. I personal found code samples more interesting then just java doc. Good point. That why my hint, here the code snippet from nutch: But - warning - in normal use of Lucene you

Re: search multiple indexes

2004-07-01 Thread Stefan Groschupf
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/ MultiSearcher.html 100% Right. I personal found code samples more interesting then just java doc. That why my hint, here the code snippet from nutch: /** Construct given a number of indexed segments. */ public IndexSearcher(Fil

RE: search multiple indexes

2004-07-01 Thread Toby Tremayne
Re: search multiple indexes Stefan Groschupf wrote: >> Possibly a silly question - but how would I go about searching multiple >> indexes using lucene? Do I need to basically repeat the code I use to >> search one index for each one, or is there a better way to do it? > &g

Re: search multiple indexes

2004-07-01 Thread David Spencer
Stefan Groschupf wrote: Possibly a silly question - but how would I go about searching multiple indexes using lucene? Do I need to basically repeat the code I use to search one index for each one, or is there a better way to do it? Take a look to the nutch.org sourcecode. It does what you are sea

Re: search multiple indexes

2004-07-01 Thread Stefan Groschupf
Possibly a silly question - but how would I go about searching multiple indexes using lucene? Do I need to basically repeat the code I use to search one index for each one, or is there a better way to do it? Take a look to the nutch.org sourcecode. It does what you are searching for. HTH Stefan -

search multiple indexes

2004-07-01 Thread Toby Tremayne
Possibly a silly question - but how would I go about searching multiple indexes using lucene? Do I need to basically repeat the code I use to search one index for each one, or is there a better way to do it? Toby ---