throw new QueryPhaseExecutionException(this, "Cannot use [sort] option in conjunction with [rescore]."); int maxWindow = indexService.getIndexSettings().getMaxRescoreWindow(); for (RescoreContext rescoreContext: rescore) { if (rescoreContext.getWindowSize() > maxWindow) {
int maxWindow = indexService.getIndexSettings().getMaxRescoreWindow(); for (RescoreSearchContext rescoreContext: rescore) { if (rescoreContext.window() > maxWindow) {
throw new QueryPhaseExecutionException(this, "Cannot use [sort] option in conjunction with [rescore]."); int maxWindow = indexService.getIndexSettings().getMaxRescoreWindow(); for (RescoreContext rescoreContext: rescore) { if (rescoreContext.getWindowSize() > maxWindow) {
throw new QueryPhaseExecutionException(this, "Cannot use [sort] option in conjunction with [rescore]."); int maxWindow = indexService.getIndexSettings().getMaxRescoreWindow(); for (RescoreContext rescoreContext: rescore) { if (rescoreContext.getWindowSize() > maxWindow) {