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
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
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&
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
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
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
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
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
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
-
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
---
10 matches
Mail list logo