Package org.apache.lucene.search.similarities

Examples of org.apache.lucene.search.similarities.BasicSimilarityProvider


  public SearchResults BM25search(String query, int limit)
  throws CorruptIndexException, IOException {
   
    // Score
    BM25Similarity similarity = new BM25Similarity();   
    BasicSimilarityProvider similarityProvider = new BasicSimilarityProvider(similarity);
    this.setSimilarityProvider(similarityProvider);
   
    return this.search(query, limit);
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.similarities.BasicSimilarityProvider

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.