2021-10-13 00:23:56 +02:00
|
|
|
package it.cavallium.dbengine.lucene;
|
|
|
|
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
2021-10-15 00:03:41 +02:00
|
|
|
class LLDocElementScoreComparator implements Comparator<LLDoc> {
|
2021-10-13 00:23:56 +02:00
|
|
|
|
2021-10-15 00:03:41 +02:00
|
|
|
public static final Comparator<LLDoc> SCORE_DOC_SCORE_ELEM_COMPARATOR = new LLDocElementScoreComparator();
|
2021-10-13 00:23:56 +02:00
|
|
|
|
|
|
|
@Override
|
2021-10-15 00:03:41 +02:00
|
|
|
public int compare(LLDoc hitA, LLDoc hitB) {
|
2022-06-15 18:36:22 +02:00
|
|
|
return Float.compare(hitB.score(), hitA.score());
|
2021-10-13 00:23:56 +02:00
|
|
|
}
|
|
|
|
}
|