FAQ
Is it safe to change the compound file format option at any time during the life of an index?

Can I build an index with it off, then turn it on, and call optimize, and have a compound file formatted index?

And then later, turn it on, call optimize again, and go back the other way?

The JavaDocs don't say much of anything about it (oh - and PS - there is a copy and paste error in the description for the getUseCompoundFile() method)

Thanks,

Dan


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

Search Discussions

  • Andrzej Bialecki at Sep 8, 2004 at 7:37 pm

    Armbrust, Daniel C. wrote:

    Is it safe to change the compound file format option at any time during the life of an index?

    Can I build an index with it off, then turn it on, and call optimize, and have a compound file formatted index?

    And then later, turn it on, call optimize again, and go back the other way?
    In my experience it's safe. I've been doing this in a couple of real
    applications, and also in Luke there is an option to re-pack the index
    using compound or not.

    --
    Best regards,
    Andrzej Bialecki

    -------------------------------------------------
    Software Architect, System Integration Specialist
    CEN/ISSS EC Workshop, ECIMF project chair
    EU FP6 E-Commerce Expert/Evaluator
    -------------------------------------------------
    FreeBSD developer (http://www.freebsd.org)


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org
  • Armbrust, Daniel C. at Sep 8, 2004 at 7:44 pm
    Hmm, I tried that in Luke - but it doesn't seem to take. When I uncheck the use compound file check box, and then select optimize, it doesn't change anything.

    I guess I should just write some code already :)

    Dan


    -----Original Message-----
    From: Andrzej Bialecki
    Sent: Wednesday, September 08, 2004 2:37 PM
    To: Lucene Users List
    Subject: Re: Compound File Format question

    Armbrust, Daniel C. wrote:
    Is it safe to change the compound file format option at any time during the life of an index?

    Can I build an index with it off, then turn it on, and call optimize, and have a compound file formatted index?

    And then later, turn it on, call optimize again, and go back the other way?
    In my experience it's safe. I've been doing this in a couple of real
    applications, and also in Luke there is an option to re-pack the index
    using compound or not.

    --
    Best regards,
    Andrzej Bialecki

    -------------------------------------------------
    Software Architect, System Integration Specialist
    CEN/ISSS EC Workshop, ECIMF project chair
    EU FP6 E-Commerce Expert/Evaluator
    -------------------------------------------------
    FreeBSD developer (http://www.freebsd.org)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org
  • Armbrust, Daniel C. at Sep 8, 2004 at 8:05 pm
    Ahh - two new discoveries:

    You have to add a document, remove a document, and then call optimize. Then everything works (nearly as expected)

    The version of Lucene that ships with Luke still has the broken optimize code in it that didn't clean up after itself - so you need to just download Luke, and then run it with 1.4.1 of Lucene, rather than what is ships with (which the website indicates is 1.4 RC4)


    Dan

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedSep 8, '04 at 7:01p
activeSep 8, '04 at 8:05p
posts4
users2
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase