cleverage/play2-elasticsearch — pull request #39 by myprysm (2014-02-12 18:03:42+00:00)
Title: Related to issue #19 for "ArithmeticException: Non-terminating decimal expansion"

Hi,

As i'm working a lot w/ playframework 2 and elasticsearch, i encountered many times this annoying exception.

In some cases when setting a result size, the division done is not terminated and therefore throw and ArithmeticException that causes the result not to be returned while elasticsearch has whereas found some results.

Attached, a tweak that rounds the division and avoid this exception to be thrown.