use of org.codelibs.fess.es.query.StoredLtrQueryBuilder in project fess by codelibs.
the class LtrQueryRescorer method evaluate.
@Override
public RescorerBuilder<?> evaluate(final Map<String, Object> params) {
final FessConfig fessConfig = ComponentUtil.getFessConfig();
final String modelName = fessConfig.getLtrModelName();
if (StringUtil.isBlank(modelName)) {
return null;
}
return new QueryRescorerBuilder(new StoredLtrQueryBuilder().modelName(modelName).params(params)).windowSize(fessConfig.getLtrWindowSize());
}
Aggregations