couchbaselabs / gojsonsm

Go implementation of my JSONSM algorithm.
9 stars 7 forks source link

MB-34861 - Allow key to be first operand in a simple math expr #115

Closed nelio2k closed 5 years ago

nelio2k commented 5 years ago

It's possible that users want to input a simple math expression where the key comes before an op and a constant. This fix should address this use case relatively simply.

nelio2k commented 5 years ago

Latest push is a minor modification to also allow math to work on 2 fields, so people can do something like "field1 + field2 > 0"

nelio2k commented 5 years ago

Updated commit msg since earlier one didn't make sense