lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunnyfr <johanna...@gmail.com>
Subject Optimize
Date Thu, 02 Oct 2008 08:28:32 GMT

Hi,

Can somebody explain me a bit how works optimize? 
Is it automatic, because I configurated my snapshooter on the postOptimize,
and not the postCommit,
Did I miss something ?  I read the doc but didn't get really what fire
optimize, I did that:

    <!-- Perform a <commit/> automatically under certain conditions:
         maxDocs - number of updates since last commit is greater than this
         maxTime - oldest uncommited update (in ms) is this long ago -->
    <autoCommit>
      <maxDocs>10000</maxDocs>
      <maxTime>1000</maxTime>
    </autoCommit>

    <!-- A postCommit event is fired after every commit or optimize command
    <listener event="postCommit" class="solr.RunExecutableListener">
      <str name="exe">/data/solr/video/bin/snapshooter</str>
      <str name="dir">/data/solr/video/bin</str>
      <bool name="wait">true</bool>
      <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
      <arr name="env"> <str>MYVAR=val1</str> </arr>
    </listener>
    -->

    <!-- A postOptimize event is fired only after every optimize command,
useful
         in conjunction with index distribution to only distribute optimized
indicies -->
    <listener event="postOptimize" class="solr.RunExecutableListener">
      <str name="exe">/data/solr/video/bin/snapshooter</str>
      <str name="dir">/data/solr/video/bin</str>
      <bool name="wait">true</bool>
    </listener>

Thanks a lot,

-- 
View this message in context: http://www.nabble.com/Optimize-tp19775177p19775177.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message