2021-07-06 00:30:14 +02:00
|
|
|
package it.cavallium.dbengine.lucene.searcher;
|
|
|
|
|
2021-10-13 12:25:32 +02:00
|
|
|
import it.cavallium.dbengine.lucene.PageLimits;
|
2021-07-06 00:30:14 +02:00
|
|
|
|
2021-09-20 18:20:59 +02:00
|
|
|
public record PaginationInfo(long totalLimit, long firstPageOffset, PageLimits pageLimits, boolean forceSinglePage) {
|
2021-07-06 00:30:14 +02:00
|
|
|
|
2021-07-17 23:06:26 +02:00
|
|
|
public static final int MAX_SINGLE_SEARCH_LIMIT = 256;
|
2021-07-06 00:30:14 +02:00
|
|
|
public static final int FIRST_PAGE_LIMIT = 10;
|
2021-07-26 19:21:17 +02:00
|
|
|
/**
|
|
|
|
* Use true to allow a custom unscored collector when possible
|
|
|
|
*/
|
|
|
|
public static final boolean ALLOW_UNSCORED_PAGINATION_MODE = true;
|
2021-07-06 00:30:14 +02:00
|
|
|
}
|