Fix duplicate code and one version of getWeightedSpanTerms - should accept a TokenStream now rather than a CachingTokenStream. Also fixes getWeightedSpanTermsWithScores to intern the fieldname.