Field Type for Numeric

Feb 7, 2011 at 6: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?

Coordinator
Feb 7, 2011 at 7:01 PM
Edited Feb 7, 2011 at 7: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.)