Example usage for org.apache.lucene.codecs DocValuesFormat reloadDocValuesFormats

List of usage examples for org.apache.lucene.codecs DocValuesFormat reloadDocValuesFormats

Introduction

In this page you can find the example usage for org.apache.lucene.codecs DocValuesFormat reloadDocValuesFormats.

Prototype

public static void reloadDocValuesFormats(ClassLoader classloader) 

Source Link

Document

Reloads the DocValues format list from the given ClassLoader .

Usage

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

License:Apache License

/**
 * Reloads all Lucene SPI implementations using the new classloader.
 * This method must be called after {@link #addToClassLoader(String, FileFilter, boolean)}
 * and {@link #addToClassLoader(String,FileFilter,boolean)} before using
 * this ResourceLoader./*w ww .  jav a 2s.co  m*/
 */
void reloadLuceneSPI() {
    // Codecs:
    PostingsFormat.reloadPostingsFormats(this.classLoader);
    DocValuesFormat.reloadDocValuesFormats(this.classLoader);
    Codec.reloadCodecs(this.classLoader);
    // Analysis:
    CharFilterFactory.reloadCharFilters(this.classLoader);
    TokenFilterFactory.reloadTokenFilters(this.classLoader);
    TokenizerFactory.reloadTokenizers(this.classLoader);
}