JsonNode idNode = rootNode.get("id_str");
if (idNode == null || idNode.textValue() == null) {
continue; // skip
}
doc.put("id", idPrefix + idNode.textValue());
tryAddDate(doc, "created_at", rootNode.get("created_at"));
tryAddString(doc, "source", rootNode.get("source"));
tryAddString(doc, "text", rootNode.get("text"));
tryAddInt(doc, "retweet_count", rootNode.get("retweet_count"));
tryAddBool(doc, "retweeted", rootNode.get("retweeted"));