Example usage for org.apache.lucene.codecs.memory DirectPostingsFormat DirectPostingsFormat

List of usage examples for org.apache.lucene.codecs.memory DirectPostingsFormat DirectPostingsFormat

Introduction

In this page you can find the example usage for org.apache.lucene.codecs.memory DirectPostingsFormat DirectPostingsFormat.

Prototype

public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff) 

Source Link

Document

minSkipCount is how many terms in a row must have the same prefix before we put a skip pointer down.

Usage

From source file:org.elasticsearch.index.codec.postingsformat.DirectPostingsFormatProvider.java

License:Apache License

@Inject
public DirectPostingsFormatProvider(@Assisted String name, @Assisted Settings postingsFormatSettings) {
    super(name);//www.j av a  2s  . c  o m
    this.minSkipCount = postingsFormatSettings.getAsInt("min_skip_count", 8); // See DirectPostingsFormat#DEFAULT_MIN_SKIP_COUNT
    this.lowFreqCutoff = postingsFormatSettings.getAsInt("low_freq_cutoff", 32); // See DirectPostingsFormat#DEFAULT_LOW_FREQ_CUTOFF
    this.postingsFormat = new DirectPostingsFormat(minSkipCount, lowFreqCutoff);
}