Mark resolved queries

Mark any query for a resolved bug that hasn't been seen in elasticSearch
for two weeks(we only keep data in ES for two weeks)  as resolved.

Change-Id: I045771da3560018a0510d5ad62c5b145b162dad5
Merge "Mark resolved queries"