Fixing size issue with elasticsearch.