Example usage for org.apache.lucene.index LogByteSizeMergePolicy getMaxMergeMB

List of usage examples for org.apache.lucene.index LogByteSizeMergePolicy getMaxMergeMB

Introduction

In this page you can find the example usage for org.apache.lucene.index LogByteSizeMergePolicy getMaxMergeMB.

Prototype

public double getMaxMergeMB() 

Source Link

Document

Returns the largest segment (measured by total byte size of the segment's files, in MB) that may be merged with other segments.

Usage

From source file:org.apache.solr.core.TestPropInjectDefaults.java

License:Apache License

@Test
public void testMergePolicyDefaults() throws Exception {
    ExposeWriterHandler uh = new ExposeWriterHandler();
    IndexWriter writer = uh.getWriter();
    LogByteSizeMergePolicy mp = (LogByteSizeMergePolicy) writer.getConfig().getMergePolicy();
    assertEquals(32.0, mp.getMaxMergeMB(), 0);
    uh.close();/*from w ww  .  j a  v a2 s  .  c  o m*/
}