Class RandomNoReverseMergePolicyFactory


  • public final class RandomNoReverseMergePolicyFactory
    extends org.apache.solr.index.MergePolicyFactory
    A MergePolicyFactory for RandomMergePolicy preventing random segment reversing. It's absolutely necessary for all block join dependent tests. Without it, they may unexpectedly fail from time to time.
    • Constructor Detail

      • RandomNoReverseMergePolicyFactory

        public RandomNoReverseMergePolicyFactory()
    • Method Detail

      • createRule

        public static org.junit.rules.TestRule createRule()
        This rule works because all solrconfig*.xml files include solrconfig.snippet.randomindexconfig.xml where this property is used. If one refuse to include it, test may unexpectedly fail from time to time.
      • getMergePolicy

        public org.apache.lucene.index.MergePolicy getMergePolicy()
        Specified by:
        getMergePolicy in class org.apache.solr.index.MergePolicyFactory