{"size": 177, "ext": "js", "max_stars_repo_path": "server/types/search_request/lib/get_field_script.js", "max_stars_repo_name": "lmangani/kibana-kable", "max_stars_repo_stars_event_min_datetime": "2018-08-02T19:34:35.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-12T10:54:29.000Z", "max_issues_repo_path": "server/types/search_request/lib/get_field_script.js", "max_issues_repo_name": "lmangani/kibana-kable", "max_issues_repo_issues_event_min_datetime": "2018-08-02T19:33:38.000Z", "max_issues_repo_issues_event_max_datetime": "2018-08-14T16:58:21.000Z", "max_forks_repo_path": "server/types/search_request/lib/get_field_script.js", "max_forks_repo_name": "lmangani/kibana-kable", "max_forks_repo_forks_event_min_datetime": "2019-06-19T15:19:10.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-19T15:19:10.000Z"}
{"max_stars_count": 7, "max_issues_count": 3, "max_forks_count": 1, "avg_line_length": 35.4, "max_line_length": 67, "alphanum_fraction": 0.6949152542}
module.exports = function (field, searchRequest) {
  searchRequest.scripts = searchRequest.scripts || {};
  return searchRequest.scripts[field] || `(doc['${field}'].value)`;
};
