lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (SOLR-8621) solrconfig.xml: deprecate/replace <mergePolicy> with <mergePolicyFactory>
Date Fri, 29 Jan 2016 11:53:39 GMT


ASF subversion and git services commented on SOLR-8621:

Commit 3c4929e8efa041d53117e6f3669485d96839c98d in lucene-solr's branch refs/heads/master-solr-8621
from [~cpoerschke]
[;h=3c4929e ]

[outline] SOLR-8621: solrconfig.xml: deprecate/replace <mergePolicy> with <mergePolicyFactory>

*outline summary:*

* We currently have mergeFactor and maxMergeDocs elements alongside the mergePolicy element.
The mergeFactor/maxMergeDocs/mergePolicy elements will be deprecated together i.e. mergePolicyFactory
will ignore mergeFactor and maxMergeDocs. (Note that maxMergeDocs only applies to LogMergePolicy
policies, and that mergeFactor only applies to LogMergePolicy and TieredMergePolicy policies.)
* We currently have SolrIndexConfig.fixUseCFMergePolicyInitArg to account for any <useCompoundFile>
in <mergePolicy> (since ?.? <useCompoundFile> is directly specified in <indexConfig>).
For the <mergePolicyFactory> element no such accommodations would be made.

* some invokeSetter functionality from solr/util/SolrPluginUtils factored out into lucene/util/LucenePluginUtils
(SolrPluginUtilsTest would need similar factoring out)

* new classes (but no tests for them as yet) in lucene/core/src/java/org/apache/lucene/index
** MergePolicyFactory[Helper|Args]
** (Simple|Wrapper)MergePolicyFactory
** (Tiered|UpgradeIndex)MergePolicyFactory (additional factories needed e.g. for NoMergePolicy
and LogMergePolicy)

* changes to add <mergePolicyFactory> support and deprecate (but
maintain) <mergePolicy> element support
* solrconfig-tieredmergepolicy.xml added based on solrconfig-tieredmergepolicy.xml with tests
randomly choosing one or the other (similar would be needed for other test solrconfig.xml

* example and documentation changes - TODO

> solrconfig.xml: deprecate/replace <mergePolicy> with <mergePolicyFactory>
> -------------------------------------------------------------------------
>                 Key: SOLR-8621
>                 URL:
>             Project: Solr
>          Issue Type: Task
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
> *<mergePolicyFactory> end-user benefits:*
> * Lucene's UpgradeIndexMergePolicy can be configured in Solr
> * (with SOLR-5730) Lucene's SortingMergePolicy can be configured in Solr
> * customisability: arbitrary merge policies including wrapping/nested merge policies
can be created and configured
> *roadmap:*
> * solr 5.5 introduces <mergePolicyFactory> support
> * solr 5.5(\?) deprecates (but maintains) <mergePolicy> support
> * solr 6.0(\?) removes <mergePolicy> support 
> *ticket todos*
> * add <mergePolicyFactory> examples to this ticket
> * work-in-progress git branch off master - to be created (Christine)
> * Solr Reference Guide update (at/towards the very end i.e. master and branch_5x commits)

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message