@@ -389,16 +389,16 @@ public void testGeneral() throws Exception {
389
389
// superman has a higher df (thus lower idf) in one segment, but reversed in the complete index
390
390
String q ="{!func}query($qq)" ;
391
391
String fq ="id:120" ;
392
- assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:batman" , "fq" ,fq ), "//float[@name='score']<'1.0 '" );
393
- assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:superman" , "fq" ,fq ), "//float[@name='score']>'1.0 '" );
392
+ assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:batman" , "fq" ,fq ), "//float[@name='score']<'0.6 '" );
393
+ assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:superman" , "fq" ,fq ), "//float[@name='score']>'0.6 '" );
394
394
395
395
// test weighting through a function range query
396
- assertQ (req ("fl" ,"*,score" , "fq" ,fq , "q" , "{!frange l=1 u=10}query($qq)" , "qq" ,"text:superman" ), "//*[@numFound='1']" );
396
+ assertQ (req ("fl" ,"*,score" , "fq" ,fq , "q" , "{!frange l=0.6 u=10}query($qq)" , "qq" ,"text:superman" ), "//*[@numFound='1']" );
397
397
398
398
// test weighting through a complex function
399
399
q ="{!func}sub(div(sum(0.0,product(1,query($qq))),1),0)" ;
400
- assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:batman" , "fq" ,fq ), "//float[@name='score']<'1.0 '" );
401
- assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:superman" , "fq" ,fq ), "//float[@name='score']>'1.0 '" );
400
+ assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:batman" , "fq" ,fq ), "//float[@name='score']<'0.6 '" );
401
+ assertQ (req ("fl" ,"*,score" ,"q" , q , "qq" ,"text:superman" , "fq" ,fq ), "//float[@name='score']>'0.6 '" );
402
402
403
403
404
404
// test full param dereferencing
0 commit comments