{"$type":"com.ensuant.type.List","$value":[]}
function(options, libs){ var must = [{ "term": { "PageCategoryType": "Event" } }, { "term": { "WebChannel": options.websiteChannel } }]; var range; if(options.daterange){ range = options.daterange; must.push({ "range": { "Timestamp": { "gte": range.filter.gt, "lte": range.filter.lt } } }); } else { var now = new Date(); var year = now.getFullYear(); var month = now.getMonth(); var startDay = moment().date(); var start = moment.utc(year + "," + (month+1) + "," + "1" +","+ "00:00:00","YYYY,MM,DD,hh:mm:ss"); var endDay = moment((year + "," + (month+1) + "," + "1"), "YYYY,MM,DD").add(1,'years').format('YYYY,MM,DD,hh:mm:ss'); var end = moment.utc(endDay,"YYYY,MM,DD,hh:mm:ss"); must.push({ "range": { "Timestamp": { "gte": start.valueOf(), "lte": end.valueOf() } } }); } return must; }
/*return selected fields*/ function(options){ return [ { "Timestamp" : {"order" : "asc"}} ]; }
/*return selected fields*/ function(options){ return {}; }

A Week's Worth

Mark Cho

In our new feature, The Armoury's co-founder and resident frequent flier, Mark Cho, breaks down a week of his everyday outfits. Focusing on a single piece each day, Mark gives us some insight into how he dresses and why he chose the pairings he did.

LOOK 1: Drake's Chambray Buttondown

I love my Drake's shirts, especially in more casual or unusual fabrics. The shape of their buttondown collar is excellent, soft and with just the right amount of height and length to it so you can wear it easily with or without a tie.

more