FAQ
Hi all.

IndexWriter.close() API states that ::

"Flushes all changes to an index and closes all associated files.".

What does "closes all associated files" mean, since we are apparently able
to still addDocument() even after calling IndexWriter.close() ?


Looking forward to a reply.

Ajay garg
--
View this message in context: http://www.nabble.com/Doubt-on-IndexWriter.close%28%29-tp18153935p18153935.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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

Search Discussions

  • Michael McCandless at Jun 27, 2008 at 4:29 pm
    Which version of Lucene are you using? Recent versions do not allow
    addDocument to be called after close.

    Mike

    java_is_everything wrote:
    Hi all.

    IndexWriter.close() API states that ::

    "Flushes all changes to an index and closes all associated files.".

    What does "closes all associated files" mean, since we are apparently able
    to still addDocument() even after calling IndexWriter.close() ?


    Looking forward to a reply.

    Ajay garg
    --
    View this message in context: http://www.nabble.com/Doubt-on-IndexWriter.close%28%29-tp18153935p18153935.html
    Sent from the Lucene - Java Users mailing list archive at Nabble.com.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
  • Java_is_everything at Jun 30, 2008 at 3:40 am
    Hi Mike.

    Our project currently uses 2.0.0. So I suppose the later versions might not
    be allowing this, right?

    Ajay Garg



    Michael McCandless-2 wrote:
    Which version of Lucene are you using? Recent versions do not allow
    addDocument to be called after close.

    Mike

    java_is_everything wrote:
    Hi all.

    IndexWriter.close() API states that ::

    "Flushes all changes to an index and closes all associated files.".

    What does "closes all associated files" mean, since we are apparently
    able
    to still addDocument() even after calling IndexWriter.close() ?


    Looking forward to a reply.

    Ajay garg
    --
    View this message in context:
    http://www.nabble.com/Doubt-on-IndexWriter.close%28%29-tp18153935p18153935.html
    Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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

    --
    View this message in context: http://www.nabble.com/Doubt-on-IndexWriter.close%28%29-tp18153935p18188207.html
    Sent from the Lucene - Java Users mailing list archive at Nabble.com.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
  • Michael McCandless at Jun 30, 2008 at 8:59 am
    That's right -- the check was added in 2.2.

    Mike

    java_is_everything wrote:
    Hi Mike.

    Our project currently uses 2.0.0. So I suppose the later versions
    might not
    be allowing this, right?

    Ajay Garg



    Michael McCandless-2 wrote:
    Which version of Lucene are you using? Recent versions do not allow
    addDocument to be called after close.

    Mike

    java_is_everything wrote:
    Hi all.

    IndexWriter.close() API states that ::

    "Flushes all changes to an index and closes all associated files.".

    What does "closes all associated files" mean, since we are
    apparently
    able
    to still addDocument() even after calling IndexWriter.close() ?


    Looking forward to a reply.

    Ajay garg
    --
    View this message in context:
    http://www.nabble.com/Doubt-on-IndexWriter.close%28%29-tp18153935p18153935.html
    Sent from the Lucene - Java Users mailing list archive at
    Nabble.com.


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

    --
    View this message in context: http://www.nabble.com/Doubt-on-IndexWriter.close%28%29-tp18153935p18188207.html
    Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedJun 27, '08 at 12:41p
activeJun 30, '08 at 8:59a
posts4
users2
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase