List of usage examples for org.apache.lucene.codecs.memory DirectPostingsFormat DirectPostingsFormat
public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff)
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); }