[sword-devel] clucene indexing time issue

Костя Маслюк kostyamaslyuk at gmail.com
Wed Aug 14 07:04:51 MST 2013


Post it here because PocketSword team potentially would be interested too.

Some time ago i got strange issue when indexing time in BibleTime Mini
increased from 9 minutes to several hours. Investigating this i found that
one line been removed from BibleTime code, it have following setup for
clucene writer:

        // Always create a new index:
        typedef lucene::index::IndexWriter IW;
        QSharedPointer<IW> writer(new IW(index.toLatin1().constData(), &an,
true));
        writer->setMaxFieldLength(BT_MAX_LUCENE_FIELD_LENGTH);
        writer->setUseCompoundFile(true); // Merge segments into a single
file

and following line was removed, when i restored it, index building time
returned to 9 minutes on all mobile targets:
        writer->setMinMergeDocs(1000);

Let me know if this removal was related with any bugfix.
----------- ???????? ????? -----------
???????? ? ??????? HTML ???? ?????????&hellip;
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130814/7127bd33/attachment-0001.html>


More information about the sword-devel mailing list