http://lucene.apache.org/java/2_9_1/api/core/org/apache/lucene/index/IndexReader.html#reopen%28%29

...
If the index has not changed since this instance was (re)opened, then
this call is a NOOP and returns this instance


--
Ian.

On Fri, Jul 30, 2010 at 9:16 AM, Gregory Tarr <gregory.t...@detica.com> wrote:
> I'm having trouble with the IndexReader class as per below: (using
> lucene 2.9.1)
>
> RAMDirectory dir = new RAMDirectory();
> createIndex(dir);
> IndexReader reader = IndexReader.open(dir);
> IndexReader reader2 = reader.reopen();
> reader.close();
> reader2.terms(); // AlreadyClosedException - this IndexReader is closed
>
> Can anyone see where I'm going wrong?
>
> Thanks
>
> Greg
>
>
> This message should be regarded as confidential. If you have received this 
> email in error please notify the sender and destroy it immediately.
> Statements of intent shall only become binding when confirmed in hard copy by 
> an authorised signatory.  The contents of this email may relate to dealings 
> with other companies within the Detica Limited group of companies.
>
> Detica Limited is registered in England under No: 1337451.
>
> Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to