Re: Problem modifying Similarity class to work with lucene 3.1.0

2011-05-03 Thread Robert Muir
On Tue, May 3, 2011 at 10:29 AM, Paul Taylor wrote: > I assume this would be the correct way to fix the code for 3.1.0 > Yes, thats correct. > public float computeNorm(String field, FieldInvertState state) { > > >        //This will match both artist and label aliases and is applicable to > both

Re: Problem modifying Similarity class to work with lucene 3.1.0

2011-05-03 Thread Paul Taylor
On 03/05/2011 15:06, Robert Muir wrote: On Tue, May 3, 2011 at 9:57 AM, Paul Taylor wrote: How can I convert this Similariity method to use 3.1 (currently using 3.0.3), I understand I have to replace lengthNorm() wuth computerNorm() , but fieldlName is not a provided parameter in computerNorm()

Re: Problem modifying Similarity class to work with lucene 3.1.0

2011-05-03 Thread Robert Muir
On Tue, May 3, 2011 at 9:57 AM, Paul Taylor wrote: > How can I convert this Similariity method to use 3.1 (currently using > 3.0.3), I understand I have to replace lengthNorm() wuth computerNorm() , > but fieldlName is not a provided parameter in computerNorm() and > FieldInvertState does not cont

Problem modifying Similarity class to work with lucene 3.1.0

2011-05-03 Thread Paul Taylor
How can I convert this Similariity method to use 3.1 (currently using 3.0.3), I understand I have to replace lengthNorm() wuth computerNorm() , but fieldlName is not a provided parameter in computerNorm() and FieldInvertState does not contain the fieldname either. I need the field because I onl