sbp opened a new pull request #16:
URL: https://github.com/apache/incubator-ponymail-foal/pull/16
Foal does not correctly discover all lists available to it from its
Elasticsearch database because the underlying aggregation query does not
specify a size, and so the default of ten is used. This means that Foal will
only ever discover up to ten available mailing lists.
Unfortunately it is not possible to fix this by specifying `size=0` as in
other Elasticsearch queries to receive unbounded results. If you try this for a
term aggregation you get a error along the lines of:
```
elasticsearch.exceptions.RequestError:
RequestError(400, 'x_content_parse_exception', '[1:114] [terms] failed to
parse field [size]')
```
Therefore this PR raises the limit to `8192` mailing lists, meaning that at
most `8192` mailing lists will be correctly discovered. This number was chosen
arbitrarily.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]