Fix compilation error by import org.apache.lucene.util.BytesRef;