Add hook to control text for search index.

This adds the EntityContent::getTextForSearchIndex hook which
allows extensiosn to control what the full text indexer gets to
see of an item.

Change-Id: Ifc14d2b3c8ca4f6c59475fd3fe6602b152aaa735
Merge "Add hook to control text for search index."