lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "karl wettin" <>
Subject Re: InstatiatedIndex questions
Date Wed, 19 Nov 2008 13:15:00 GMT
Hi David,

thanks for the report! I suppose you speak of IndexWriter vs
InstantiatedIndexWriter? These are definitely considered discrepancy
problems. I've created a new issue in the tracker:

For what reason do you try to serialize the InstantatedIndex? Could
you perhaps use FSDirectory and IndexWriter instead, and then each
time you update that index you replace your InstantiatedIndex with a
new one constructed using the IndexReader argumented constructor of

I'm afraid that I'm rather busy at the moment but I'll try to fix it
ASAP. It should however be rather easy to fix if you just want to
solve the specific problem: reset all pre-tokenized streams before
they are tokenized in InstantiatedIndexWriter#addDocument and make
TermVectorOffsetInfo implement Serializable.


On Wed, Nov 19, 2008 at 11:00 AM, David Causse <> wrote:
> Hi,
> Here are some differences I noticed between InstanciatedIndex and
> RAMDirectory :
> - RAMDirectory seems to do a reset on tokenStreams the first time, this
> permits to initialise some objects before starting streaming,
> InstanciatedIndex does not.
> - I can Serialize a RAMDirectory but I cannot on a InstantiatedIndex because
> of :
> org.apache.lucene.index.TermVectorOffsetInfo
> Do you consider this as problems or normal features?
> Thank you.
> David.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message