[ 
https://issues.apache.org/jira/browse/SOLR-12156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419206#comment-16419206
 ] 

Shawn Heisey commented on SOLR-12156:
-------------------------------------

bq. But if a novice developer calls optimize after each commit, I want my 
configurations to protect my index from that.

Use IgnoreCommitOptimizeUpdateProcessorFactory.  I included links to 
documentation above.  For more information about how to use update processors, 
see the Solr reference guide.

bq. I want to configure internally a downtime where the optimize will auto 
initiate

You can add an entry to the scheduling software in your OS to do this.  On 
Linux/Unix, it's usually very easy -- configure an entry in your crontab that 
uses curl or wget to make an HTTP request to initiate the optimize.  There are 
ways to do it on Windows as well.


> "<optimizeConfig>" in solrconfig.xml similar to "<indexConfig>"
> ---------------------------------------------------------------
>
>                 Key: SOLR-12156
>                 URL: https://issues.apache.org/jira/browse/SOLR-12156
>             Project: Solr
>          Issue Type: Wish
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: config-api
>            Reporter: Indranil Majumder
>            Priority: Major
>
> It would be great to have the below config parameters in solrconfig.xml :-
>  # maxMergedSegmentMB (same as in TieredMergePolicy)
>  # maxOptimizeSegments (same as in solrjClient.optimize( 
> *waitFlush,**waitSearcher* ,{color:#FF0000}*maxSegments*{color}))
>  # expungeDeletes (true/false)
>  # optimizeTimeout(in minutes)
>  # disableExlicitOptimize (disable all solrClient call to optimize )
>  ## optimizeJobCron - associated to disableExlicitOptimize where optimization 
> can be carried out at a maintenance period defined by the cron expression.
> This in turn needs to be respected by DirectUpdateHandler2 or any other 
> handler trying to optimize the index



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to