Updated for Solr 4.5.1 and fixed a base word length calculation error that caused exceptions in Solr highlighter.