Re: use of FieldInvertState class

2011-07-20 Thread bryant88
Ok thanks, maybe i understood. I will try to store the field length in a Map in my custom Similarity and then pick them with a getLength() method and then divide it by the number of docs so i can have the average length of a field. thank you Raffaele Branda -- View this message in context:

Re: use of FieldInvertState class

2011-07-20 Thread bryant88
Ok. I need to use this class to get length of a given field at index time to pass it as parameter to the computeNorm method from a custom Similarity. The issue is that i don't know how to get a FieldInvertState object and precisely i didn't understand if I have to create and populate it myself o