Thanks Chris! This works with lucene2.1 and greater (breaks with lucene2.0)
A follow up question, anyway to rename and to delete a field. Rename field: I tried to use a hex editor to edit the .fnm file (screwed up my index, but I was careful and followed the index format) Deleting a field: ideas? Thanks -John On Jan 31, 2008 2:02 PM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : I have to keep one index though. Is there a way to reproduce an index > from > : an indexReader? > > asuming you have indexes that work in conjunction with eachther they > way you want when using ParallelReader, you should (in theory) be able to > use... > > ParallelReader r = ...; > IndexWriter w = new IndexWRiter(...); > w.addIndexes(new IndexReader[] { r }); > w.close(); > > ...to "combine" those indexes into a single physical index. but i've > never personally tried it. there may be quirks about ParallelReader that > prevent this from working. > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >