{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/13833","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13833/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13833/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13833/events","html_url":"https://github.com/elastic/elasticsearch/issues/13833","id":108740461,"number":13833,"title":"_score value doesn’t match the return value of a script_score","user":{"login":"cldsnchz","id":1469312,"avatar_url":"https://avatars.githubusercontent.com/u/1469312?v=3","gravatar_id":"","url":"https://api.github.com/users/cldsnchz","html_url":"https://github.com/cldsnchz","followers_url":"https://api.github.com/users/cldsnchz/followers","following_url":"https://api.github.com/users/cldsnchz/following{/other_user}","gists_url":"https://api.github.com/users/cldsnchz/gists{/gist_id}","starred_url":"https://api.github.com/users/cldsnchz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cldsnchz/subscriptions","organizations_url":"https://api.github.com/users/cldsnchz/orgs","repos_url":"https://api.github.com/users/cldsnchz/repos","events_url":"https://api.github.com/users/cldsnchz/events{/privacy}","received_events_url":"https://api.github.com/users/cldsnchz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T20:31:41Z","updated_at":"2015-09-29T19:43:54Z","closed_at":"2015-09-29T14:08:20Z","body":"When the following `script_score` is executed the explain shows a different _score value than the one returned by the script\r\n\r\n```\r\n{\r\n  \"query\":{\r\n    \"function_score\":{\r\n      \"functions\":[\r\n        { \"script_score\":{ \"script\":\"1443150000000\" } }\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThis is what the explain shows:\r\n\r\n```\r\nvalue: 1443150040000\r\ndescription: \"script score function, computed with script:\"1443150000000\"\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/144167685","html_url":"https://github.com/elastic/elasticsearch/issues/13833#issuecomment-144167685","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13833","id":144167685,"user":{"login":"cldsnchz","id":1469312,"avatar_url":"https://avatars.githubusercontent.com/u/1469312?v=3","gravatar_id":"","url":"https://api.github.com/users/cldsnchz","html_url":"https://github.com/cldsnchz","followers_url":"https://api.github.com/users/cldsnchz/followers","following_url":"https://api.github.com/users/cldsnchz/following{/other_user}","gists_url":"https://api.github.com/users/cldsnchz/gists{/gist_id}","starred_url":"https://api.github.com/users/cldsnchz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cldsnchz/subscriptions","organizations_url":"https://api.github.com/users/cldsnchz/orgs","repos_url":"https://api.github.com/users/cldsnchz/repos","events_url":"https://api.github.com/users/cldsnchz/events{/privacy}","received_events_url":"https://api.github.com/users/cldsnchz/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T19:43:54Z","updated_at":"2015-09-29T19:43:54Z","body":"Is there any plan to change `_score` from float to double? That will allow to use timestamps as scores (I'm working on a use case that needs that feature)."}}