CavalliumDBEngine/src/main/java/it/cavallium/dbengine/lucene/searcher/PaginationInfo.java

15 lines
485 B
Java
Raw Normal View History

package it.cavallium.dbengine.lucene.searcher;
import java.util.Comparator;
import org.apache.lucene.search.ScoreDoc;
public record PaginationInfo(long totalLimit, long firstPageOffset, long firstPageLimit, boolean forceSinglePage) {
2021-07-17 23:06:26 +02:00
public static final int MAX_SINGLE_SEARCH_LIMIT = 256;
public static final int FIRST_PAGE_LIMIT = 10;
/**
* Use true to allow a custom unscored collector when possible
*/
public static final boolean ALLOW_UNSCORED_PAGINATION_MODE = true;
}