Example usage for org.apache.lucene.codecs Codec setDefault

List of usage examples for org.apache.lucene.codecs Codec setDefault

Introduction

In this page you can find the example usage for org.apache.lucene.codecs Codec setDefault.

Prototype

public static void setDefault(Codec codec) 

Source Link

Document

expert: sets the default codec used for newly created IndexWriterConfig s.

Usage

From source file:com.sindicetech.siren.index.codecs.RandomSirenCodec.java

License:Open Source License

public RandomSirenCodec(final Random random, final PostingsFormatType formatType) {
    this.addSirenFields(SirenTestCase.DEFAULT_TEST_FIELD);
    this.random = random;
    this.defaultTestFormat = RandomSirenCodec.getPostingsFormat(random, formatType);
    Codec.setDefault(this);
}

From source file:com.sindicetech.siren.index.codecs.RandomSirenCodec.java

License:Open Source License

public RandomSirenCodec(final Random random, final PostingsFormat format) {
    this.addSirenFields(SirenTestCase.DEFAULT_TEST_FIELD);
    this.random = random;
    this.defaultTestFormat = format;
    Codec.setDefault(this);
}

From source file:org.elasticsearch.ElasticsearchLuceneTestCase.java

License:Apache License

/**
 * Forcefully reset the default codec
 */
public static void forceDefaultCodec() {
    Codec.setDefault(DEFAULT_CODEC);
}

From source file:org.sindice.siren.index.codecs.RandomSirenCodec.java

License:Apache License

public RandomSirenCodec(final Random random, final PostingsFormatType formatType) {
    this.addSirenFields(SirenTestCase.DEFAULT_TEST_FIELD);
    this.random = random;
    this.defaultTestFormat = this.getPostingsFormat(formatType);
    Codec.setDefault(this);
}