Package org.apache.lucene.search.similarities

Examples of org.apache.lucene.search.similarities.BM25Similarity$BM25DocScorer


        super(name);
        float k1 = settings.getAsFloat("k1", 1.2f);
        float b = settings.getAsFloat("b", 0.75f);
        boolean discountOverlaps = settings.getAsBoolean("discount_overlaps", true);

        this.similarity = new BM25Similarity(k1, b);
        this.similarity.setDiscountOverlaps(discountOverlaps);
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.similarities.BM25Similarity$BM25DocScorer

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.