lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang" <john.w...@gmail.com>
Subject Re: appending field to an existing index
Date Fri, 01 Feb 2008 08:03:07 GMT
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 <hossman_lucene@fucit.org> 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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message