public Term(String fld,BytesRef bytes){
  field=fld;
  this.bytes=bytes == null ? null : BytesRef.deepCopyOf(bytes);
}

public Term ( String fld , BytesRef bytes ) { field = fld ; this . bytes = bytes == null ? null : BytesRef . deepCopyOf ( bytes ) ; }
constructs a term with the given field and bytes . < p > note that a null field or null bytes value results in undefined behavior for most lucene apis that accept a term parameter . < p > the provided bytesref is copied when it is non null .
