protected void addPrefixMatch(StringBuilder sb,String surface,String analyzed,String prefixToken){
  if (prefixToken.length() >= surface.length()) {
    addWholeMatch(sb,surface,analyzed);
    return;
  }
  sb.append("<b>");
  sb.append(surface.substring(0,prefixToken.length()));
  sb.append("</b>");
  sb.append(surface.substring(prefixToken.length()));
}

protected void addPrefixMatch ( StringBuilder sb , String surface , String analyzed , String prefixToken ) { if ( prefixToken . length ( ) >= surface . length ( ) ) { addWholeMatch ( sb , surface , analyzed ) ; return ; } sb . append ( "<b>" ) ; sb . append ( surface . substring ( 0 , prefixToken . length ( ) ) ) ; sb . append ( "</b>" ) ; sb . append ( surface . substring ( prefixToken . length ( ) ) ) ; }
called while highlighting a single result , to append a matched prefix token , to the provided fragments list .
