lib/indexer.js
function resultToContentItem(esDoc) {
  var annoDoc = {_source : {}};
  publishFields.forEach(function(f) {
    annoDoc._source[f] = esDoc[f];
  });
  return annoDoc;
}
function resultToContentItem(esDoc) {
  var annoDoc = {_source : {}};
  publishFields.forEach(function(f) {
    annoDoc._source[f] = esDoc[f];
  });
  return annoDoc;
}
function resultToContentItem ( esDoc ) { var annoDoc = { _source : { } } ; publishFields . forEach ( function ( f ) { annoDoc . _source [ f ] = esDoc [ f ] ; } ) ; return annoDoc ; }
copy a cItem to elasticsearch field result format
copy a cItem to elasticsearch field result format