: I tried implementing my own Similarity and setting it in : IndexWriter.setSimilarity(new CosSimilarity()).
that only changes the Similarity used by the IndexWriter when writing out hte index files (which is really only used to get the lengthNorm) if you wnat to change the Similarity used at query time, you need to use Searcher.setSimilarity(Similarity). or to change it globally for everything, call Similiarity.setDefault(Similarity) before constructing any Writers/Readers/Searchers. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]