Field Type for Numeric

Feb 7, 2011 at 7:54 PM

When trying to aggregate, i had a field type that was plaintext.  Does the field type for numeric need to be double or integer?

Feb 7, 2011 at 8:01 PM
Edited Feb 7, 2011 at 8:06 PM

Yes.  That way I am sure that the value will be a number.

For non-numeric aggregations you need to use the "String" operation type and setup some <Mappings>.

Trying to do math with any string-like field type is not supported.  This is because I pull the data type from the field as part of the way I handle it.  I have updated the documentation to reflect this limitation.

If the field represents a Numeric value then are you able to just change the field to be a numeric type?  Is there a good reason to have string-like fields doing math?  (If so I may add this to the project.)