public HighlightBuilder field(String name){
  if (fields == null) {
    fields=new ArrayList<>();
  }
  fields.add(new Field(name));
  return this;
}

public HighlightBuilder field ( String name ) { if ( fields == null ) { fields = new ArrayList < > ( ) ; } fields . add ( new Field ( name ) ) ; return this ; }
adds a field to be highlighted with default fragment size of 100 characters , and default number of fragments of 5 using the default encoder
