Be consistent with the default value of `acceptable_overhead_ratio`.

This commit is contained in:
Adrien Grand 2013-07-19 19:37:36 +02:00
parent 32a96aea71
commit 09362f47e9
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ public final class OrdinalsBuilder implements Closeable {
* Builds an {@link Ordinals} instance from the builders current state.
*/
public Ordinals build(Settings settings) {
final float acceptableOverheadRatio = settings.getAsFloat("acceptable_overhead_ratio", PackedInts.COMPACT);
final float acceptableOverheadRatio = settings.getAsFloat("acceptable_overhead_ratio", PackedInts.DEFAULT);
if (numMultiValuedDocs > 0 || MultiOrdinals.significantlySmallerThanSinglePackedOrdinals(maxDoc, numDocsWithValue, getNumOrds())) {
// MultiOrdinals can be smaller than SinglePackedOrdinals for sparse fields
return new MultiOrdinals(this);