private string Next(TermsEnum te) { BytesRef br = te.Next(); if (br == null) { return null; } else { return br.Utf8ToString(); } }