Package org.apache.lucene.search.similarities

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


  public SearchResults VSMsearch(String query, int limit)
      throws CorruptIndexException, IOException {
   
    // Implements similarity with the Vector Space Model
    DefaultSimilarityProvider provider = new DefaultSimilarityProvider();
    this.setSimilarityProvider(provider);

    return this.search(query, limit);
  }
View Full Code Here

TOP

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

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.