Re: Searching multiple indexes

2008-02-21 Thread Daniel Noll
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

Re: Searching multiple indexes

2008-02-19 Thread Cedric Ho
> > 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

RE: Searching multiple indexes

2008-02-19 Thread spring
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

Re: Searching multiple indexes

2006-06-25 Thread Ramesh Salla
Hi, use MultiFieldQueryParser instead of the Queryparser that you are using. Like this, String fields[]={field1, field2,} MultiFieldQueryParser parser = new MultiFieldQueryParser(fields, new StopAnalyzer());

Re: Searching multiple indexes

2006-06-23 Thread Karel Tejnora
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