Java 类org.apache.lucene.index.IndexWriter.IndexReaderWarmer 实例源码

项目:lams    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:lams    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:lams    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:search    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:search    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:search    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:search    文件:SolrIndexConfig.java   
public IndexWriterConfig toIndexWriterConfig(IndexSchema schema) {
  // so that we can update the analyzer on core reload, we pass null
  // for the default analyzer, and explicitly pass an analyzer on 
  // appropriate calls to IndexWriter

  IndexWriterConfig iwc = new IndexWriterConfig(luceneVersion, null);
  if (maxBufferedDocs != -1)
    iwc.setMaxBufferedDocs(maxBufferedDocs);

  if (ramBufferSizeMB != -1)
    iwc.setRAMBufferSizeMB(ramBufferSizeMB);

  if (termIndexInterval != -1)
    iwc.setTermIndexInterval(termIndexInterval);

  if (writeLockTimeout != -1)
    iwc.setWriteLockTimeout(writeLockTimeout);

  iwc.setSimilarity(schema.getSimilarity());
  iwc.setMergePolicy(buildMergePolicy(schema));
  iwc.setMergeScheduler(buildMergeScheduler(schema));
  iwc.setInfoStream(infoStream);

  // do this after buildMergePolicy since the backcompat logic 
  // there may modify the effective useCompoundFile
  iwc.setUseCompoundFile(getUseCompoundFile());

  if (maxIndexingThreads != -1) {
    iwc.setMaxThreadStates(maxIndexingThreads);
  }

  if (mergedSegmentWarmerInfo != null) {
    // TODO: add infostream -> normal logging system (there is an issue somewhere)
    IndexReaderWarmer warmer = schema.getResourceLoader().newInstance(mergedSegmentWarmerInfo.className, 
                                                                      IndexReaderWarmer.class,
                                                                      null,
                                                                      new Class[] { InfoStream.class },
                                                                      new Object[] { iwc.getInfoStream() });
    iwc.setMergedSegmentWarmer(warmer);
  }

  iwc.setCheckIntegrityAtMerge(checkIntegrityAtMerge);

  return iwc;
}
项目:NYBC    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:NYBC    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:NYBC    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:read-open-source-code    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:read-open-source-code    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:read-open-source-code    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:read-open-source-code    文件:SolrIndexConfig.java   
public IndexWriterConfig toIndexWriterConfig(IndexSchema schema) {
  // so that we can update the analyzer on core reload, we pass null
  // for the default analyzer, and explicitly pass an analyzer on 
  // appropriate calls to IndexWriter

  IndexWriterConfig iwc = new IndexWriterConfig(luceneVersion, null);
  if (maxBufferedDocs != -1)
    iwc.setMaxBufferedDocs(maxBufferedDocs);

  if (ramBufferSizeMB != -1)
    iwc.setRAMBufferSizeMB(ramBufferSizeMB);

  if (termIndexInterval != -1)
    iwc.setTermIndexInterval(termIndexInterval);

  if (writeLockTimeout != -1)
    iwc.setWriteLockTimeout(writeLockTimeout);

  iwc.setSimilarity(schema.getSimilarity());
  iwc.setMergePolicy(buildMergePolicy(schema));
  iwc.setMergeScheduler(buildMergeScheduler(schema));
  iwc.setInfoStream(infoStream);

  // do this after buildMergePolicy since the backcompat logic 
  // there may modify the effective useCompoundFile
  iwc.setUseCompoundFile(getUseCompoundFile());

  if (maxIndexingThreads != -1) {
    iwc.setMaxThreadStates(maxIndexingThreads);
  }

  if (mergedSegmentWarmerInfo != null) {
    // TODO: add infostream -> normal logging system (there is an issue somewhere)
    IndexReaderWarmer warmer = schema.getResourceLoader().newInstance(mergedSegmentWarmerInfo.className, 
                                                                      IndexReaderWarmer.class,
                                                                      null,
                                                                      new Class[] { InfoStream.class },
                                                                      new Object[] { iwc.getInfoStream() });
    iwc.setMergedSegmentWarmer(warmer);
  }

  return iwc;
}
项目:read-open-source-code    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:read-open-source-code    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:read-open-source-code    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:read-open-source-code    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:read-open-source-code    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:read-open-source-code    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:read-open-source-code    文件:SolrIndexConfig.java   
public IndexWriterConfig toIndexWriterConfig(IndexSchema schema) {
  // so that we can update the analyzer on core reload, we pass null
  // for the default analyzer, and explicitly pass an analyzer on 
  // appropriate calls to IndexWriter

  IndexWriterConfig iwc = new IndexWriterConfig(luceneVersion, null);
  if (maxBufferedDocs != -1)
    iwc.setMaxBufferedDocs(maxBufferedDocs);

  if (ramBufferSizeMB != -1)
    iwc.setRAMBufferSizeMB(ramBufferSizeMB);

  if (termIndexInterval != -1)
    iwc.setTermIndexInterval(termIndexInterval);

  if (writeLockTimeout != -1)
    iwc.setWriteLockTimeout(writeLockTimeout);

  iwc.setSimilarity(schema.getSimilarity());
  iwc.setMergePolicy(buildMergePolicy(schema));
  iwc.setMergeScheduler(buildMergeScheduler(schema));
  iwc.setInfoStream(infoStream);

  // do this after buildMergePolicy since the backcompat logic 
  // there may modify the effective useCompoundFile
  iwc.setUseCompoundFile(getUseCompoundFile());

  if (maxIndexingThreads != -1) {
    iwc.setMaxThreadStates(maxIndexingThreads);
  }

  if (mergedSegmentWarmerInfo != null) {
    // TODO: add infostream -> normal logging system (there is an issue somewhere)
    IndexReaderWarmer warmer = schema.getResourceLoader().newInstance(mergedSegmentWarmerInfo.className, 
                                                                      IndexReaderWarmer.class,
                                                                      null,
                                                                      new Class[] { InfoStream.class },
                                                                      new Object[] { iwc.getInfoStream() });
    iwc.setMergedSegmentWarmer(warmer);
  }

  iwc.setCheckIntegrityAtMerge(checkIntegrityAtMerge);

  return iwc;
}
项目:Maskana-Gestor-de-Conocimiento    文件:LiveIndexWriterConfig.java   
/** Returns the current merged segment warmer. See {@link IndexReaderWarmer}. */
public IndexReaderWarmer getMergedSegmentWarmer() {
  return mergedSegmentWarmer;
}
项目:Maskana-Gestor-de-Conocimiento    文件:IndexWriterConfig.java   
@Override
public IndexReaderWarmer getMergedSegmentWarmer() {
  return super.getMergedSegmentWarmer();
}
项目:Maskana-Gestor-de-Conocimiento    文件:IndexWriterConfig.java   
@Override
public IndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  return (IndexWriterConfig) super.setMergedSegmentWarmer(mergeSegmentWarmer);
}
项目:lams    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}
项目:search    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}
项目:NYBC    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}
项目:read-open-source-code    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}
项目:read-open-source-code    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}
项目:read-open-source-code    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}
项目:Maskana-Gestor-de-Conocimiento    文件:LiveIndexWriterConfig.java   
/**
 * Set the merged segment warmer. See {@link IndexReaderWarmer}.
 * 
 * <p>
 * Takes effect on the next merge.
 */
public LiveIndexWriterConfig setMergedSegmentWarmer(IndexReaderWarmer mergeSegmentWarmer) {
  this.mergedSegmentWarmer = mergeSegmentWarmer;
  return this;
}