"AS" prefix missing from the as field in documents

This also has the effect of breaking searches by AS number.

Thanks to dove in IRC for figuring out the root cause.