Adjust top_search_terms to not turn large ints into large int.days

That way we won't try to query dates in the BC range.