You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Jibo John (JIRA)" <ji...@apache.org> on 2009/09/17 22:46:57 UTC

[jira] Created: (SOLR-1444) Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"

Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"
------------------------------------------------------------------------------------

                 Key: SOLR-1444
                 URL: https://issues.apache.org/jira/browse/SOLR-1444
             Project: Solr
          Issue Type: Improvement
          Components: update
    Affects Versions: 1.4
         Environment: NA
            Reporter: Jibo John
            Priority: Minor


A patch was committed in lucene  (http://issues.apache.org/jira/browse/LUCENE-1634) that would consider the number of deleted documents as the criteria when deciding which segments to merge.

By default, calibrateSizeByDeletes = false in LogMergePolicy. So, currently, there is no way in Solr to set calibrateSizeByDeletes = true.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1444) Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756929#action_12756929 ] 

Noble Paul commented on SOLR-1444:
----------------------------------

What should be the configuration?
{code:xml} 
<mergePolicy calibrateSizeByDeletes = "false">org.apache.lucene.index.LogByteSizeMergePolicy</mergePolicy> 
{code} 

should we move to a more consistent configuration such as 
{code:xml} 
<mergePolicy class="org.apache.lucene.index.LogByteSizeMergePolicy" calibrateSizeByDeletes = "false"/> 
{code} 


> Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-1444
>                 URL: https://issues.apache.org/jira/browse/SOLR-1444
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.4
>         Environment: NA
>            Reporter: Jibo John
>            Priority: Minor
>
> A patch was committed in lucene  (http://issues.apache.org/jira/browse/LUCENE-1634) that would consider the number of deleted documents as the criteria when deciding which segments to merge.
> By default, calibrateSizeByDeletes = false in LogMergePolicy. So, currently, there is no way in Solr to set calibrateSizeByDeletes = true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1444) Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"

Posted by "Jibo John (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756942#action_12756942 ] 

Jibo John commented on SOLR-1444:
---------------------------------

I would vote for option 2. That looks more consistent with other configs.

> Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-1444
>                 URL: https://issues.apache.org/jira/browse/SOLR-1444
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.4
>         Environment: NA
>            Reporter: Jibo John
>            Priority: Minor
>
> A patch was committed in lucene  (http://issues.apache.org/jira/browse/LUCENE-1634) that would consider the number of deleted documents as the criteria when deciding which segments to merge.
> By default, calibrateSizeByDeletes = false in LogMergePolicy. So, currently, there is no way in Solr to set calibrateSizeByDeletes = true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1444) Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757431#action_12757431 ] 

Jason Rutherglen commented on SOLR-1444:
----------------------------------------

I think this is barking up the wrong path, I think we'll want to support any setter methods a class has to offer.  I opened an issue to address this SOLR-1447  Otherwise we're writing custom code for each config class?

> Add option in solrconfig.xml to override the LogMergePolicy "calibrateSizeByDeletes"
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-1444
>                 URL: https://issues.apache.org/jira/browse/SOLR-1444
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.4
>         Environment: NA
>            Reporter: Jibo John
>            Priority: Minor
>
> A patch was committed in lucene  (http://issues.apache.org/jira/browse/LUCENE-1634) that would consider the number of deleted documents as the criteria when deciding which segments to merge.
> By default, calibrateSizeByDeletes = false in LogMergePolicy. So, currently, there is no way in Solr to set calibrateSizeByDeletes = true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.