Class RandomNoReverseMergePolicyFactory

java.lang.Object
org.apache.solr.index.MergePolicyFactory
org.apache.solr.util.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.
  • Field Summary

    Fields inherited from class org.apache.solr.index.MergePolicyFactory

    args, resourceLoader, schema
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.junit.rules.TestRule
    This rule works because all solrconfig*.xml files include solrconfig.snippet.randomindexconfig.xml where this property is used.
    org.apache.lucene.index.MergePolicy
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RandomNoReverseMergePolicyFactory

      public RandomNoReverseMergePolicyFactory()
  • Method Details

    • 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