mirror of https://github.com/apache/lucene.git
6b6932e8e1
* fix so that getMergePolicy() can now be called more than once * added WrapperMergePolicyFactoryTest.testUpgradeIndexMergePolicyFactory() * account for overlap between wrapping and wrapped setters (and disallow it) ** illustration: <mergePolicyFactory class="UpgradeMergePolicyFactory"> <int name="noCFSRatio">0.24</int> <str name="wrapped.prefix">mergePolicy</str> <str name="mergePolicy.class">TieredMergePolicyFactory</str> <int name="mergePolicy.noCFSRatio">0.42</int> </mergePolicyFactory> ** implementation details: the wrapping MP's setter calls the wrapped MP's setter and in the current code the wrapping MP's value prevails i.e. the 0.24 value in the illustration since the wrapped MP is constructed before the wrapping MP. an end-user however might reasonably assume that the wrapped MP's 0.42 value will prevail. at best configuring the same setter twice within the same overall <mergePolicyFactory> element is ambiguous and so the code now disallows it. |
||
---|---|---|
dev-tools | ||
lucene | ||
solr | ||
.gitignore | ||
.hgignore | ||
README.txt | ||
build.xml |
README.txt
Apache Lucene/Solr lucene/ is a search engine library solr/ is a search engine server that uses lucene To compile the sources run 'ant compile' To run all the tests run 'ant test' To setup your ide run 'ant idea', 'ant netbeans', or 'ant eclipse' For Maven info, see dev-tools/maven/README.maven For more information on how to contribute see: http://wiki.apache.org/lucene-java/HowToContribute http://wiki.apache.org/solr/HowToContribute