To allow searches to be restricted by content model (e.g. to javascript pages, or to geo-shapes), ContentHandler::getFieldsForSearchIndex() and getDataForSearchIndex() should expose the content model name to the search engine. A keyword like "contentmodel" or "pagetype" could be used to filter by it.
QUESTION: should we expose the internal distinction between content model and media type, between uploaded media and page content? Or should we rather hide that distinction?