Package org.sf.mustru.search

Examples of org.sf.mustru.search.SearchSimilarity


         (crawlConfig.getFreshIndex() ==  0) ? false: true;
  try 
  {
   fsd = FSDirectory.getDirectory(new File(Constants.getINDEXDIR()), freshIndex);
   analyzer = new StandardBgramAnalyzer(); iw = new IndexWriter(fsd, analyzer, freshIndex);
   iw.setSimilarity(new SearchSimilarity());
   ctRef.setIw(iw);
  }
  catch (IOException ie) { ctRef.cleanUp("Could not get IndexWriter " + ie.getMessage() ); }

  //*-- create the spell checker
View Full Code Here

TOP

Related Classes of org.sf.mustru.search.SearchSimilarity

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.