XContentBuilder out = jsonBuilder().startObject();
addValueToTheIndexField(out, indexFieldForRiverName, riverName);
addValueToTheIndexField(out, indexFieldForProjectKey, projectKey);
addValueToTheIndexField(out, indexFieldForIssueKey, issueKey);
addCommonFieldsToChangelogIndexedDocument(out, issueKey, changelog);
return out.endObject();
}
private void addCommonFieldsToChangelogIndexedDocument(XContentBuilder out, String issueKey,
Map<String, Object> changelog) throws Exception {
addValueToTheIndexField(out, indexFieldForJiraURL, prepareJIRAGUIUrl(issueKey, null));