Re: Similarity and Lucene

2009-03-20 Thread Amin Mohammed-Coleman
Allthough (I could be wrong) but I'm wondering if the lenthNorm is the correct one I should be overriding. I'm interested in the number of times a term occurs found in a document (more occurance the higher the score) which I believe is coord. I may well be i am barking up the wrong tree. Cheers

Similarity and Lucene

2009-03-20 Thread Amin Mohammed-Coleman
Hi If I choose to subclass the default similarity, do I need to apply the same subclassed Similarity to IndexReader, IndexWriter and IndexSearcher? I am interested in doing the below: Similarity sim = new DefaultSimilarity() { public float lengthNorm(String field, int numTerms) { if(field