@@ -658,23 +658,23 @@ public void testPartition() throws IOException {
658
658
assertEquals (3 , scorer .firstRequiredScorer ); // no required clauses
659
659
660
660
// less than the minimum score of every clause
661
- scorer .minCompetitiveScore = 0.09f ;
661
+ scorer .scorable . minCompetitiveScore = 0.09f ;
662
662
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
663
663
scorer .updateMaxWindowScores (4 , 100 );
664
664
assertTrue (scorer .partitionScorers ());
665
665
assertEquals (0 , scorer .firstEssentialScorer ); // all clauses are still essential
666
666
assertEquals (3 , scorer .firstRequiredScorer ); // no required clauses
667
667
668
668
// equal to the maximum score of `the`
669
- scorer .minCompetitiveScore = 0.1f ;
669
+ scorer .scorable . minCompetitiveScore = 0.1f ;
670
670
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
671
671
scorer .updateMaxWindowScores (4 , 100 );
672
672
assertTrue (scorer .partitionScorers ());
673
673
assertEquals (0 , scorer .firstEssentialScorer ); // all clauses are still essential
674
674
assertEquals (3 , scorer .firstRequiredScorer ); // no required clauses
675
675
676
676
// gt than the minimum score of `the`
677
- scorer .minCompetitiveScore = 0.11f ;
677
+ scorer .scorable . minCompetitiveScore = 0.11f ;
678
678
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
679
679
scorer .updateMaxWindowScores (4 , 100 );
680
680
assertTrue (scorer .partitionScorers ());
@@ -683,7 +683,7 @@ public void testPartition() throws IOException {
683
683
assertSame (the , scorer .allScorers [0 ].scorer );
684
684
685
685
// equal to the sum of the max scores of the and quick
686
- scorer .minCompetitiveScore = 1.1f ;
686
+ scorer .scorable . minCompetitiveScore = 1.1f ;
687
687
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
688
688
scorer .updateMaxWindowScores (4 , 100 );
689
689
assertTrue (scorer .partitionScorers ());
@@ -692,7 +692,7 @@ public void testPartition() throws IOException {
692
692
assertSame (the , scorer .allScorers [0 ].scorer );
693
693
694
694
// greater than the sum of the max scores of the and quick
695
- scorer .minCompetitiveScore = 1.11f ;
695
+ scorer .scorable . minCompetitiveScore = 1.11f ;
696
696
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
697
697
scorer .updateMaxWindowScores (4 , 100 );
698
698
assertTrue (scorer .partitionScorers ());
@@ -703,7 +703,7 @@ public void testPartition() throws IOException {
703
703
assertSame (fox , scorer .allScorers [2 ].scorer );
704
704
705
705
// equal to the sum of the max scores of the and fox
706
- scorer .minCompetitiveScore = 1.2f ;
706
+ scorer .scorable . minCompetitiveScore = 1.2f ;
707
707
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
708
708
scorer .updateMaxWindowScores (4 , 100 );
709
709
assertTrue (scorer .partitionScorers ());
@@ -714,7 +714,7 @@ public void testPartition() throws IOException {
714
714
assertSame (fox , scorer .allScorers [2 ].scorer );
715
715
716
716
// greater than the sum of the max scores of the and fox
717
- scorer .minCompetitiveScore = 1.21f ;
717
+ scorer .scorable . minCompetitiveScore = 1.21f ;
718
718
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
719
719
scorer .updateMaxWindowScores (4 , 100 );
720
720
assertTrue (scorer .partitionScorers ());
@@ -725,7 +725,7 @@ public void testPartition() throws IOException {
725
725
assertSame (fox , scorer .allScorers [2 ].scorer );
726
726
727
727
// equal to the sum of the max scores of quick and fox
728
- scorer .minCompetitiveScore = 2.1f ;
728
+ scorer .scorable . minCompetitiveScore = 2.1f ;
729
729
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
730
730
scorer .updateMaxWindowScores (4 , 100 );
731
731
assertTrue (scorer .partitionScorers ());
@@ -736,7 +736,7 @@ public void testPartition() throws IOException {
736
736
assertSame (fox , scorer .allScorers [2 ].scorer );
737
737
738
738
// greater than the sum of the max scores of quick and fox
739
- scorer .minCompetitiveScore = 2.11f ;
739
+ scorer .scorable . minCompetitiveScore = 2.11f ;
740
740
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
741
741
scorer .updateMaxWindowScores (4 , 100 );
742
742
assertTrue (scorer .partitionScorers ());
@@ -747,7 +747,7 @@ public void testPartition() throws IOException {
747
747
assertSame (fox , scorer .allScorers [2 ].scorer );
748
748
749
749
// greater than the sum of the max scores of quick and fox
750
- scorer .minCompetitiveScore = 2.11f ;
750
+ scorer .scorable . minCompetitiveScore = 2.11f ;
751
751
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
752
752
scorer .updateMaxWindowScores (4 , 100 );
753
753
assertTrue (scorer .partitionScorers ());
@@ -758,7 +758,7 @@ public void testPartition() throws IOException {
758
758
assertSame (fox , scorer .allScorers [2 ].scorer );
759
759
760
760
// equal to the sum of the max scores of all terms
761
- scorer .minCompetitiveScore = 2.2f ;
761
+ scorer .scorable . minCompetitiveScore = 2.2f ;
762
762
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
763
763
scorer .updateMaxWindowScores (4 , 100 );
764
764
assertTrue (scorer .partitionScorers ());
@@ -769,7 +769,7 @@ public void testPartition() throws IOException {
769
769
assertSame (fox , scorer .allScorers [2 ].scorer );
770
770
771
771
// greater than the sum of the max scores of all terms
772
- scorer .minCompetitiveScore = 2.21f ;
772
+ scorer .scorable . minCompetitiveScore = 2.21f ;
773
773
Collections .shuffle (Arrays .asList (scorer .allScorers ), random ());
774
774
scorer .updateMaxWindowScores (4 , 100 );
775
775
assertFalse (scorer .partitionScorers ()); // no possible match in this window
0 commit comments