elasticsearch/kibana — pull request #2292 by spenceralger (2014-12-12 18:22:56+00:00)
Title: [indexPattern] don't use scripted fields when the source doesn't contain...

fixes #2239, fixes #2239

These changes prevent script errors because of undefined mappings, prevent script values from being used as source values if the source didn't have a value to begin with, and prevents date scripts from returning 0 when the field is not defined in source.