//*****************************************************************
//Build a site search result in order to add it to the index
VersionInfo versionInfo = APILocator.getVersionableAPI().getVersionInfo( testHtmlPage.getIdentifier() );
String docId = testHtmlPage.getIdentifier() + "_" + defaultLanguage.getId();
SiteSearchResult res = new SiteSearchResult( testHtmlPage.getMap() );
res.setLanguage( defaultLanguage.getId() );
res.setFileName( testHtmlPage.getFriendlyName() );
res.setModified( versionInfo.getVersionTs() );
res.setHost( defaultHost.getIdentifier() );
res.setMimeType( "text/html" );
res.setContentLength( 1 );//Just sending something different than 0
res.setContent( stemmerText );
res.setUri( testHtmlPage.getURI() );
res.setUrl( testHtmlPage.getPageUrl() );
res.setId( docId );
//Adding it to the index
siteSearchAPI.putToIndex( indexName, res );
isDocIndexed( docId );