Re: Modifying norms...

2007-05-01 Thread Chris Hostetter
: Essentially what I am trying to do is boost every document by a certain : factor, so that : the boost is between 1.0 and 2.0. After this, I we are trying to do a search : across multiple fields : and have a computation based purely on tf. Example - it sounds like you are trying to place too muc

Re: Modifying norms...

2007-04-30 Thread escher2k
Essentially what I am trying to do is boost every document by a certain factor, so that the boost is between 1.0 and 2.0. After this, I we are trying to do a search across multiple fields and have a computation based purely on tf. Example - if (field1) tf = some function else if (field2) tf =

Re: Modifying norms...

2007-04-30 Thread Chris Hostetter
: Thanks Hoss. Suppose, I go ahead and modify Similarity.java from ... : Should this work ? it depends on your definition of "work" ... if that code is what you want it to do, then yes: it will do what you want it to do. : P.S. This is a very custom implementation. For the specific probl

Re: Modifying norms...

2007-04-30 Thread escher2k
Thanks Hoss. Suppose, I go ahead and modify Similarity.java from static { for (int i = 0; i < 256; i++) NORM_TABLE[i] = SmallFloat.byte315ToFloat((byte)i); } TO static { for (int i = 0; i < 256; i++) NORM_TABLE[i] = (float) i * 100.0 /256.0; } Should this work ? Thanks

Re: Modifying norms...

2007-04-30 Thread Chris Hostetter
: I want to modify the norms to only include values between 0 and 100. : Currently, I have a custom implementation of the default similarity. Is it : sufficient to override the encodeNorm and decodeNorm methods from the base : implementation in my custom Similarity class ? Please let me know if th