From dev-return-89838-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Mon Feb 20 14:58:02 2012 Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 693509EC5 for ; Mon, 20 Feb 2012 14:58:02 +0000 (UTC) Received: (qmail 80687 invoked by uid 500); 20 Feb 2012 14:58:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 80607 invoked by uid 500); 20 Feb 2012 14:58:01 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 80600 invoked by uid 99); 20 Feb 2012 14:58:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 14:58:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 14:57:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 94C3928AD70 for ; Mon, 20 Feb 2012 14:57:34 +0000 (UTC) Date: Mon, 20 Feb 2012 14:57:34 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28Commented=29_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <697376576.2631.1329749854610.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1761253802.128.1329648994313.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-3141) Deprecate OPTIMIZE command in Solr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-3141?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13211= 898#comment-13211898 ]=20 Jan H=C3=B8ydahl commented on SOLR-3141: ----------------------------------- @Yonik, How would you feel about this approach instead: * Add the new forceMerge feature, but instead of true/false, it takes N as = number of segments, i.e. &forceMerge=3D2. This adds value to Solr's API * Keep the old &optimize=3Dtrue API (equivalent to forceMerge=3D1), but let= users control in solrconfig.xml how an old optimize is interpreted. The op= tion could look like (don't mind the naming for now): {code:xml} noop|noopWithLogWarning|commit|softCommit|forc= eMerge=3DN {code} Default could be "noopWithLogWarning", and nothing would happen on an attem= pted optimize, except logging a warning in logs pointing people to some doc= umentation. This will give people three choices: A) Stop using optimize if = they don't need it. Problem solved. B) If they wind up really needing it, s= tart using forceMerge=3DN instead. Problem solved or C) Change the config p= aram to whatever suits their situation the best, e.g. "forceMerge=3D1" woul= d mimic old behaviour but "commit" would cause a commit to happen on optimi= ze, "noop" would do noop, but get rid of log warnings etc. This would be fo= r people who cannot or won't change their own code. =20 > Deprecate OPTIMIZE command in Solr > ---------------------------------- > > Key: SOLR-3141 > URL: https://issues.apache.org/jira/browse/SOLR-3141 > Project: Solr > Issue Type: Improvement > Components: update > Affects Versions: 3.5 > Reporter: Jan H=C3=B8ydahl > Labels: force, optimize > Fix For: 3.6 > > Attachments: SOLR-3141.patch, SOLR-3141.patch > > > Background: LUCENE-3454 renames optimize() as forceMerge(). Please read t= hat issue first. > Now that optimize() is rarely necessary anymore, and renamed in Lucene AP= Is, what should be done with Solr's ancient optimize command? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org