aparo/pyes — pull request #373 by itsadok (2014-03-11 06:37:46+00:00)
Title: Allow both ends of range to be specified in ESRangeOp

Currently, if you want to use new-style ranges, you have to awkwardly combine two of them, like shown [here](https://gist.github.com/dlemphers/1553581). This patch allows defining both ends of the range in one operator.

I'm not sure what kind of emphasis this project has on backwards compatibility, but if someone has code calling the `ESRangeOp` constructor with the boost parameter used by position, this will cause them problems. You can add a line testing whether `op2` is a number, and if so assign it to `boost` or throw an Exception. Or you can reject the PR altogether. I won't be offended.

(Personally I think usage of the boost parameter is too rare to worry about).