Re: PayloadFunctions don't work the same since 4.1

2013-03-27 Thread jimtronic
Ok, finally got some time to dig into this and you were exactly right. I simply needed to provide the offset of the payload when scoring it in my custom similarity. EG: PayloadHelper.decodeFloat(payload.bytes, payload.offset); Simple! Thanks for the help. Jim -- View this message in context:

Re: PayloadFunctions don't work the same since 4.1

2013-03-24 Thread jimtronic
I appreciate your help with this! I was attempting to follow your advice when I noticed another odd behavior that leads me to believe they are not being stored correctly. If I add two documents at once using solr's update handler like so: [{"id":"1","foo_ap":"bar|50"}},{"id":"2","foo_ap":"bar|75

Re: PayloadFunctions don't work the same since 4.1

2013-03-22 Thread jimtronic
Thanks for the response. I wrote some new custom payload functions to verify that I'm getting the value correctly and I think I am, but I did unearth this clue. In the docs below, the score should be the sum of all the payloads for the term "bing". It appears to be using the value for the first te

PayloadFunctions don't work the same since 4.1

2013-03-21 Thread jimtronic
I have some custom Payload Functions that worked great up until version 4.1 and now I can't get any of them to work correctly. In fact, the existing ones -- AveragePayloadFunction, MaxPayloadFunction, and MinPayloadFunction don't seem to work properly either. This may be a problem in Solr, but sin