Fixed issue where long values were indexed with precision
4 but queried with precision 6.