Examples of LogMergePolicy


Examples of org.apache.lucene.index.LogMergePolicy

    NUMBER_OF_FIELDS = atLeast(Math.max(10, 3*termIndexInterval*indexDivisor/NUMBER_OF_DOCUMENTS));
   
    directory = newDirectory();

    config.setCodec(new PreFlexRWCodec());
    LogMergePolicy mp = newLogMergePolicy();
    // turn off compound file, this test will open some index files directly.
    mp.setUseCompoundFile(false);
    config.setMergePolicy(mp);

   
    populate(directory, config);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.