I feel kind of stupid...I don't get what hossman says in his post. I got the thing abou the OMMIT_NORMS and I tried to do it by calling Field.setOmitNorms(true); before adding a field in the index. After that I re-indexed my collection but still not making any difference.
Tell me if I got it right. The second solution that you followed is building a custom FilteredIndexReader and implement these 2 functions : byte[] norms(String field) void norms(String field, byte[] result, int offset) Did I get it right? Thank you and excuse me for continuously asking the same thing. Vagelis markrmiller wrote: > > Sorry your having trouble find it! Allow me...bingo: > http://www.gossamer-threads.com/lists/lucene/java-user/43251?search_string=sorting%20by%20per%20doc%20hit;#43251 > > Prob doesn't have great keyword for finding it. That should get you > going though. Let me know if you have any questions. > > - Mark > > -- View this message in context: http://www.nabble.com/custom-similarity-based-on-tf-but-greater-than-1.0-tf3037071.html#a8442395 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]