Make TermsQuery public
Don't return null intervals iterator in ConstantScoreQuery