On Tuesday 19 February 2008 21:08:59 [EMAIL PROTECTED] wrote:
> 1. IndexSearcher with a MultiReader will search the indexes
> sequentially?
Not exactly. It will fuse the indexes together such that things like TermEnum
will merge the ones from the real indexes, and will search using those
compos
> > I have some questions about searching multiple indexes.
> >
> > 1. IndexSearcher with a MultiReader will search the indexes
> > sequentially?
I think need to use either MultiSearcher or ParallelMultiSearcher
> >
> > 2. ParallelMultiSearcher searches in parallel. How is this
> > done? One thre
No ideas? :(
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Samstag, 16. Februar 2008 15:42
> To: java-user@lucene.apache.org
> Subject: Searching multiple indexes
>
> Hi,
>
> I have some questions about searching multiple indexes.
>
> 1. IndexSearche
Hi,
use MultiFieldQueryParser instead of the Queryparser that you are using.
Like this,
String fields[]={field1,
field2,}
MultiFieldQueryParser parser = new
MultiFieldQueryParser(fields,
new StopAnalyzer());
Hi,
there are two ways. The first is to use MultiFieldQueryParser
http://lucene.apache.org/java/docs/api/org/apache/lucene/queryParser/MultiFieldQueryParser.html
or do an extra step in indexing to build a new field as join of those
(e.g. StringBuffer append f1 append f2 ...)
Benefits of the