thanks man. very condense and easy to follow.
can i ask how the multiple search will impact the performance? i have
probably 50GB data in each of the 10-20 folders.
On Fri, Jun 24, 2011 at 1:04 AM, Uwe Schindler wrote:
> IndexReader index1 = IndexReader.open(dir1);
> IndexReader index2 = IndexR
IndexReader index1 = IndexReader.open(dir1);
IndexReader index2 = IndexReader.open(dir2);
IndexReader index3 = IndexReader.open(dir3);
...
IndexReader all = new MultiReader(index1, index2, index3,...);
IndexSearcher searcher = new IndexSearcher(all);
...search your indexes...
all.close();
index1.