作者:dmcm0011 | 来源:互联网 | 2023-06-17 09:07
本文整理了Java中org.apache.lucene.index.IndexWriterConfig.getMaxBufferedDocs()方法的一些代码示例,展示了IndexWriterConf
本文整理了Java中org.apache.lucene.index.IndexWriterConfig.getMaxBufferedDocs()
方法的一些代码示例,展示了IndexWriterConfig.getMaxBufferedDocs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IndexWriterConfig.getMaxBufferedDocs()
方法的具体详情如下:
包路径:org.apache.lucene.index.IndexWriterConfig
类名称:IndexWriterConfig
方法名:getMaxBufferedDocs
IndexWriterConfig.getMaxBufferedDocs介绍
暂无
代码示例
代码示例来源:origin: org.apache.solr/solr-test-framework
/**
* Sets system properties to allow generation of random configurations of
* solrconfig.xml and schema.xml.
* Sets properties used on
* {@link #newIndexWriterConfig(org.apache.lucene.analysis.Analyzer)}
* and base schema.xml (Point Fields)
*/
public static void newRandomConfig() {
IndexWriterConfig iwc = newIndexWriterConfig(new MockAnalyzer(random()));
System.setProperty("useCompoundFile", String.valueOf(iwc.getUseCompoundFile()));
System.setProperty("solr.tests.maxBufferedDocs", String.valueOf(iwc.getMaxBufferedDocs()));
System.setProperty("solr.tests.ramBufferSizeMB", String.valueOf(iwc.getRAMBufferSizeMB()));
String mergeSchedulerClass = iwc.getMergeScheduler().getClass().getName();
if (mergeSchedulerClass.contains("$")) {
// anonymous subclass - we can't instantiate via the resource loader, so use CMS instead
mergeSchedulerClass = "org.apache.lucene.index.ConcurrentMergeScheduler";
}
System.setProperty("solr.tests.mergeScheduler", mergeSchedulerClass);
randomizeNumericTypesProperties();
}
代码示例来源:origin: com.strapdata.elasticsearch.test/framework
if (iwc.getMaxBufferedDocs() != IndexWriterConfig.DISABLE_AUTO_FLUSH) {
estFlushSizeBytes = Math.min(estFlushSizeBytes, iwc.getMaxBufferedDocs() * 1024);