In PyLucene.py, line 1895, generated by SWIG, maxMergeDocs is defined as a python property that calls _PyLucene.IndexWriter_minMergeDocs_set which is defined line 25395 in PyLucene_wrap.cxx, also generated by SWIG.
That function sets the value on the Java side.

There also is a sample in samples/LuceneInAction called IndexTuningDemo.py that lets you experiment with mergeFactor, maxMergeDocs and minMergeDocs.

Andi..

On Mon, 18 Jul 2005, John Reese wrote:

If I'm reading the Javadoc right, I'm supposed to be able to set the
maxMergeDocs field of an indexWriter.  But I'm trying, and I'm not
certain it's working... does setting object attributes on the Python
object actually make anything happen on the Java object, or does it
not penetrate the swig?

Now, I'm not entirely convinced it didn't work.  Further tests are
underway, but the way I'm doing it now generating the test cases takes
a lot of time and disk space, so I thought I'd go ahead and ask.

If you can't set object attributes, is there a way to set system
properties, i.e. org.apache.lucene.maxMergeDocs?
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

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

Reply via email to