I got it working, 
and the off-the-top-of-your-head answer was the right one.

Thanks
Peter Gelderbloem 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Hostetter
Sent: 06 September 2005 18:53
To: java-user@lucene.apache.org
Subject: Re: Switching from FSDirectory to RAMDirectory


: Hi,
: I find that unit tests that modify an existing record in the Lucene
: index by removing it , modifying it and re-adding it, fails if I
switch
: from an FSDirectory to a RAMDirectory.

Could you please post a full and complete unit test that demonstrates
the
problem.  Based on your description of the problem, it seems like a test
of about 20 lines should demonstrate the problem.


Off the top of my head, i'm guessing that at some point in your tests,
you
close your reader and reopen it (possibly while constructing an
IndexSearcher) to see your modifications, and at that point maybe you
are
accessing the orriginal FSDirectory.




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to