lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: MergerIndex + Searchables
Date Tue, 21 Dec 2004 08:39:47 GMT
Karthik,

On Tuesday 21 December 2004 09:04, Karthik N S wrote:
> Hi Guys
> 
> Apologies...............
> 
> 
> I have several MERGERINDEXES [  MGR1,MGR2,MGR3....].
> 
> for searching across these MERGERINDEXES I use the following Code
> IndexSearcher[] indexToSearch = new IndexSearcher[CNTINDXDBOOK];
> 
> for(int all=0;all<CNTINDXDBOOK;all++){
>     indexToSearch[all] = new IndexSearcher(INDEXEDBOOKS[all]);
>      System.out.println(all + " ADDED TO SEARCHABLES " + INDEXEDBOOKS[all]);
> }
> 
> MultiSearcher searcher = new MultiSearcher(indexToSearch);
> 
> 
> Question :
> 
> When on Search Process , How to Display that this relevan  Document Id
> Originated from Which MRG???
> 
> [ Some thing like this : -  Search word  'ISBN12345' is avalible from
> "MRGx" ]

I think you are looking for the methods subSearcher() and subDoc() on
MultiSearcher.

Regards,
Paul Elschot




---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message