summaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/amazon/carbonado/qe/CompositeScore.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/CompositeScore.java b/src/main/java/com/amazon/carbonado/qe/CompositeScore.java
index 2e266c1..0006cce 100644
--- a/src/main/java/com/amazon/carbonado/qe/CompositeScore.java
+++ b/src/main/java/com/amazon/carbonado/qe/CompositeScore.java
@@ -280,9 +280,7 @@ public class CompositeScore<S extends Storable> {
}
}
- if (mFull) {
- result = FilteringScore.fullComparator().compare(firstScore, secondScore);
- } else {
+ if (!mFull) {
// Favor index that has any matches.
if (firstScore.hasAnyMatches()) {
if (!secondScore.hasAnyMatches()) {
@@ -291,8 +289,13 @@ public class CompositeScore<S extends Storable> {
} else if (secondScore.hasAnyMatches()) {
return 1;
}
+ return 0;
}
+ // Additional tests for full comparator.
+
+ result = FilteringScore.fullComparator().compare(firstScore, secondScore);
+
if (result != 0) {
return result;
}