{"action":"created","issue":{"url":"https://api.github.com/repos/10up/ElasticPress/issues/1090","repository_url":"https://api.github.com/repos/10up/ElasticPress","labels_url":"https://api.github.com/repos/10up/ElasticPress/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/10up/ElasticPress/issues/1090/comments","events_url":"https://api.github.com/repos/10up/ElasticPress/issues/1090/events","html_url":"https://github.com/10up/ElasticPress/issues/1090","id":327215137,"node_id":"MDU6SXNzdWUzMjcyMTUxMzc=","number":1090,"title":"\"reason\": \"No mapping found for [meta._iwj_featured_date.long] in order to sort on\",","user":{"login":"iexpertini","id":38841610,"node_id":"MDQ6VXNlcjM4ODQxNjEw","avatar_url":"https://avatars0.githubusercontent.com/u/38841610?v=4","gravatar_id":"","url":"https://api.github.com/users/iexpertini","html_url":"https://github.com/iexpertini","followers_url":"https://api.github.com/users/iexpertini/followers","following_url":"https://api.github.com/users/iexpertini/following{/other_user}","gists_url":"https://api.github.com/users/iexpertini/gists{/gist_id}","starred_url":"https://api.github.com/users/iexpertini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iexpertini/subscriptions","organizations_url":"https://api.github.com/users/iexpertini/orgs","repos_url":"https://api.github.com/users/iexpertini/repos","events_url":"https://api.github.com/users/iexpertini/events{/privacy}","received_events_url":"https://api.github.com/users/iexpertini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-29T08:20:02Z","updated_at":"2018-06-07T00:05:04Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nPlease can anyone help as we are unable to fix it. \r\n\r\n1. If we put some keyword as an example in Query Args **sales**\r\n`array(71) {\r\n  [\"post_type\"]=>\r\n  string(7) \"iwj_job\"\r\n  [\"post_status\"]=>\r\n  array(1) {\r\n    [0]=>\r\n    string(7) \"publish\"\r\n  }\r\n  [\"s\"]=>\r\n  string(5) \"sales\"\r\n  [\"meta_query\"]=>\r\n  array(1) {\r\n    [\"relation\"]=>\r\n    string(3) \"AND\"`\r\n\r\nthe Elasticpress in debug shows this \r\n\r\n`\r\n{\r\n    \"error\": {\r\n        \"root_cause\": [\r\n            {\r\n                \"type\": \"query_shard_exception\",\r\n                \"reason\": \"No mapping found for [meta._iwj_featured_date.long] in order to sort on\",\r\n                \"index_uuid\": \"NietcrsgQhy1H6j2Anhtgg\",\r\n                \"index\": \"1041971172-1\"\r\n            }\r\n        ],\r\n        \"type\": \"search_phase_execution_exception\",\r\n        \"reason\": \"all shards failed\",\r\n        \"phase\": \"query\",\r\n        \"grouped\": true,\r\n        \"failed_shards\": [\r\n            {\r\n                \"shard\": 0,\r\n                \"index\": \"1041971172-1\",\r\n                \"node\": \"_jVCiSiZSLyUrRcAZ9D9Xg\",\r\n                \"reason\": {\r\n                    \"type\": \"query_shard_exception\",\r\n                    \"reason\": \"No mapping found for [meta._iwj_featured_date.long] in order to sort on\",\r\n                    \"index_uuid\": \"NietcrsgQhy1H6j2Anhtgg\",\r\n                    \"index\": \"1041971172-1\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"status\": 400\r\n}\r\n`\r\n\r\n\r\nI think we need to add  `ignore_unmapped\" : true`\r\nBut where we need to add this? \r\n\r\n2. Secondly If no keyword is put in search. The elastic press in debug mode not show anything \r\n\r\nTOTAL ELASTICPRESS QUERIES:\r\n0\r\nTOTAL BLOCKING ELASTICPRESS QUERY TIME:\r\n0 ms\r\nNo queries to show"},"comment":{"url":"https://api.github.com/repos/10up/ElasticPress/issues/comments/395251347","html_url":"https://github.com/10up/ElasticPress/issues/1090#issuecomment-395251347","issue_url":"https://api.github.com/repos/10up/ElasticPress/issues/1090","id":395251347,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTI1MTM0Nw==","user":{"login":"iexpertini","id":38841610,"node_id":"MDQ6VXNlcjM4ODQxNjEw","avatar_url":"https://avatars0.githubusercontent.com/u/38841610?v=4","gravatar_id":"","url":"https://api.github.com/users/iexpertini","html_url":"https://github.com/iexpertini","followers_url":"https://api.github.com/users/iexpertini/followers","following_url":"https://api.github.com/users/iexpertini/following{/other_user}","gists_url":"https://api.github.com/users/iexpertini/gists{/gist_id}","starred_url":"https://api.github.com/users/iexpertini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iexpertini/subscriptions","organizations_url":"https://api.github.com/users/iexpertini/orgs","repos_url":"https://api.github.com/users/iexpertini/repos","events_url":"https://api.github.com/users/iexpertini/events{/privacy}","received_events_url":"https://api.github.com/users/iexpertini/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T00:05:04Z","updated_at":"2018-06-07T00:05:04Z","author_association":"NONE","body":"Hi there,\r\n \r\nI fond solution here: \r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-\r\n\r\nsort.html#_ignoring_unmapped_fields\r\n\r\nGET /_search\r\n{\r\n    \"sort\" : [\r\n        { \"price\" : {\"unmapped_type\" : \"long\"} }\r\n    ],\r\n    \"query\" : {\r\n        \"term\" : { \"product\" : \"chocolate\" }\r\n    }\r\n}\r\n\r\nBut where i need to put this code. Can anyone PLEASE HELP.\r\n\r\nNo answer from so long :(((((((((((((((((((((((((((((((((((\r\n\r\nThanks,\r\nAhsan"}}
{"actor":{"display_login":"iexpertini"}}