class MongoQueryBuilderFactory implements QueryBuilderFactory {

    @Override
    public QueryBuilder newBuilder(final Criteria criteria) {
        checkCriteria(criteria);
        return MongoQueryBuilder.limited(criteria,
                limitsConfig.getThingsSearchMaxPageSize(), limitsConfig.getThingsSearchDefaultPageSize());
    }

    public  MongoQueryBuilderFactory(final LimitsConfig limitsConfig);

}