select excerpts that have the term as a word in them

Previously the code that selected the text to highlight did a simple
text match, without word boundary checks, so a search for "tree" would
select text from the content with "street" which wouldn't then be
highlighted.  The code to select the text now does word matching.