On 07 Mar 2006, at 20:38, Andi Vajda wrote:


On Tue, 7 Mar 2006, Alf Eaton wrote:

Would it be possible to add support for the get/set MaxBufferedDocs, MaxMergeDocs and MergeFactor functions to IndexWriter? They are replacements for the deprecated minMergeDocs, maxMergeDocs and mergeFactor values: <http:// lucene.apache.org/java/docs/api/org/apache/lucene/index/ IndexWriter.html#setMaxBufferedDocs(int)>

Sure thing.
I just added them into PyLucene.i on the trunk (not yet checked in).
If you would those right away and are building PyLucene yourself, add these:

                    void setMaxBufferedDocs(jint);
                    jint getMaxBufferedDocs();
                    void setMergeFactor(jint);
                    jint getMergeFactor();

into the "class IndexWriter" section in PyLucene.i where its other methods are declared.

Thanks. Hopefully it'll be a bit easier to remember what MaxBufferedDocs does.

alf.
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to