lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Extracting a subset of an index
Date Tue, 03 Apr 2007 15:24:39 GMT
In the immortal words of Erik H. depends...

The big issue is whether you have fields in your index that are NOT
stored (i.e. Field.Store.NO). If this is the case, your documents
will not be complete, and adding it to the fresh index will not
include the un-stored data.

It's actually pretty common to store a field as
...Field.Store.NO, Field.Index.(UN_)TOKENIZED

Field.Store.COMPRESSED should be OK.

>From the Document API doc

"note that fields which are *not*
*not* available in
documents retrieved from the index, e.g. with

Otherwise, it would *probably* work, but I haven't tried it. At worst,
you could create a new document and add the fields from the old
document to it......


On 4/3/07, jafarim <> wrote:
> Hi folks,
> I need to extract a subset of an index so that I can move some documents
> to
> another isolated machine to be searched locally. I'm not sure whether the
> following scenario is correct:
> - extracting the documents from the index by using one of the doc(i)
> methods
> - adding the same Document objects to a fresh index.
> Am I right?
> --Jaf

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