Marc Sturlese wrote:
Hey there,
I am creating an index of 3G... it's fast indexing but optimization takes
about 10 min. I need to optimize it every time I update as if I don't do
that, search requests will be much slower.
Wich parameter configuration would be the best to make optimize as fast as
possible (I don't mind to use a lot of memory, at least for testing, if I
can speed up the process).
Actually I am using for the IndexWriter:
<ramBufferSizeMB>1024</ramBufferSizeMB>
<maxMergeDocs>2147483647</maxMergeDocs>
<maxFieldLength>10000</maxFieldLength>
<writeLockTimeout>1000</writeLockTimeout>
<commitLockTimeout>10000</commitLockTimeout>
<mergeFactor>10</mergeFactor>
Am I missing any important parameter to do that job?
Thanks in advance
How about using a merge factor of 2? This way you are pretty much always
optimized (old large segment, new small segment at most) - you pay a bit
in update speed, but I've found it to be very reasonable for many
applications.
--
- Mark
http://www.lucidimagination.com