CustomScoreQuery Not Returning Value in Index

2008-01-28 Thread Briggs
I am trying to 'muck' with document scores from Lucene. I have certain business rules where I have a field named 'domainScore' within my index. The 'domainScore' value is a float. What I want to do is add this value to the document sub query score from the Lucene search. I have implemented a Cu

Re: CustomScoreQuery Not Returning Value in Index

2008-01-28 Thread Briggs
One correction, my valSrcScore was '0.7002756' not ''8.614598'. But, again, it's not what I expected. On Jan 28, 2008 12:34 PM, Briggs <[EMAIL PROTECTED]> wrote: > I am trying to 'muck' with document scores from Lucene. I have > certain business rules where I have a field named 'domainScore' wit

Re: CustomScoreQuery Not Returning Value in Index

2008-01-28 Thread Tom Emerson
Hi, In the constructor for your DomainCustomScoreQuery try calling setStrict(true); after invoking the superclass ctor. I think that will fix the problem you're seeing. On Jan 28, 2008 12:34 PM, Briggs <[EMAIL PROTECTED]> wrote: > I am trying to 'muck' with document scores from Lucene. I hav

Re: CustomScoreQuery Not Returning Value in Index

2008-01-28 Thread Briggs
Cool, that worked, sort of. The customScore method that is overridden from CustomScoreQuery has a signature of: public float customScore(final int doc, final float subQueryScore, final float valSrcScore); The javadoc states that the valSrcScore is the value from the field of my ValueSourceQuery.

Re: CustomScoreQuery Not Returning Value in Index

2008-01-29 Thread Briggs
Repository. Heh. On Jan 29, 2008 9:01 AM, Briggs <[EMAIL PROTECTED]> wrote: > BTW, just wanted to say thanks again. It's working now. I still don't > know how the values were reversed. I believe I must have had a bug in > the code, but it wasn't visible to me. I think netbeans did an > 'instal

Re: CustomScoreQuery Not Returning Value in Index

2008-01-29 Thread Briggs
BTW, just wanted to say thanks again. It's working now. I still don't know how the values were reversed. I believe I must have had a bug in the code, but it wasn't visible to me. I think netbeans did an 'install' with maven and put some bad code in the respository directory and the test case was