Re: Change norm encoding

2009-11-10 Thread Michael McCandless
Well, assuming there are no objections to the current approach, and performance checks out, I'll try to get this into 3.1... Mike On Tue, Nov 10, 2009 at 4:33 AM, Benjamin Heilbrunn wrote: > Hi, > > I applied > http://issues.apache.org/jira/secure/attachment/12411342/Lucene-1260.patch > That's

Re: Change norm encoding

2009-11-10 Thread Benjamin Heilbrunn
Hi, I applied http://issues.apache.org/jira/secure/attachment/12411342/Lucene-1260.patch That's exactly what I was looking for. The problem is, that from know on I'm on a patched version and I'm not very happy with breaking compatibility to the "original" jars... So is there a chance that this p

Re: Change norm encoding

2009-11-09 Thread Michael McCandless
On Mon, Nov 9, 2009 at 12:19 PM, Benjamin Heilbrunn wrote: > After making my post i found this (without taking a deeper look): > > http://issues.apache.org/jira/browse/LUCENE-1260 > > Looks like a solution for that problem. Indeed the most recent patch there looks almost exactly like what you're

Re: Change norm encoding

2009-11-09 Thread Benjamin Heilbrunn
Hi Mike, thanks for your reply. After making my post i found this (without taking a deeper look): http://issues.apache.org/jira/browse/LUCENE-1260 Looks like a solution for that problem. Why wasn't it applied to lucene? Benjamin -

Re: Change norm encoding

2009-11-09 Thread Michael McCandless
On Mon, Nov 9, 2009 at 11:04 AM, Benjamin Heilbrunn wrote: > i've got a problem concerning encoding of norms. > I want to use int values (0-255) instead of float interpreted bytes. > > In my own Similarity-Class, which I use for indexing and searching, I > implemented the static methods encodeNor

Change norm encoding

2009-11-09 Thread Benjamin Heilbrunn
Hi, i've got a problem concerning encoding of norms. I want to use int values (0-255) instead of float interpreted bytes. In my own Similarity-Class, which I use for indexing and searching, I implemented the static methods encodeNorms, decodeNorms and getNormDecoder. But because they are static a