Package org.apache.lucene.codecs.lucene50

Examples of org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat


    @Inject
    public DefaultPostingsFormatProvider(@Assisted String name, @Assisted Settings postingsFormatSettings) {
        super(name);
        this.minBlockSize = postingsFormatSettings.getAsInt("min_block_size", BlockTreeTermsWriter.DEFAULT_MIN_BLOCK_SIZE);
        this.maxBlockSize = postingsFormatSettings.getAsInt("max_block_size", BlockTreeTermsWriter.DEFAULT_MAX_BLOCK_SIZE);
        this.postingsFormat = new Lucene50PostingsFormat(minBlockSize, maxBlockSize);
    }
View Full Code Here


public final class Elasticsearch090PostingsFormat extends PostingsFormat {
    private final BloomFilterPostingsFormat bloomPostings;

    public Elasticsearch090PostingsFormat() {
        super("es090");
        Lucene50PostingsFormat delegate = new Lucene50PostingsFormat();
        assert delegate.getName().equals(Lucene.LATEST_POSTINGS_FORMAT);
        bloomPostings = new BloomFilterPostingsFormat(delegate, BloomFilter.Factory.DEFAULT);
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.