return issue;
}
@Override
public void buildSearchForIndexedDocumentsNotUpdatedAfter(SearchRequestBuilder srb, String jiraProjectKey, Date date) {
FilterBuilder filterTime = FilterBuilders.rangeFilter("_timestamp").lt(date);
FilterBuilder filterProject = FilterBuilders.termFilter(indexFieldForProjectKey, jiraProjectKey);
FilterBuilder filterSource = FilterBuilders.termFilter(indexFieldForRiverName, riverName);
FilterBuilder filter = FilterBuilders.boolFilter().must(filterTime).must(filterProject).must(filterSource);
srb.setQuery(QueryBuilders.matchAllQuery()).addField("_id").setFilter(filter);
if (commentIndexingMode.isExtraDocumentIndexed())
srb.setTypes(issueTypeName, commentTypeName);
else
srb.setTypes(issueTypeName);