{"action":"opened","issue":{"url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/93","labels_url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/93/comments","events_url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/93/events","html_url":"https://github.com/mongoosastic/mongoosastic/issues/93","id":99811098,"number":93,"title":"Mapping: all the filed of objects are indexed","user":{"login":"mhd999","id":2817431,"avatar_url":"https://avatars.githubusercontent.com/u/2817431?v=3","gravatar_id":"","url":"https://api.github.com/users/mhd999","html_url":"https://github.com/mhd999","followers_url":"https://api.github.com/users/mhd999/followers","following_url":"https://api.github.com/users/mhd999/following{/other_user}","gists_url":"https://api.github.com/users/mhd999/gists{/gist_id}","starred_url":"https://api.github.com/users/mhd999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhd999/subscriptions","organizations_url":"https://api.github.com/users/mhd999/orgs","repos_url":"https://api.github.com/users/mhd999/repos","events_url":"https://api.github.com/users/mhd999/events{/privacy}","received_events_url":"https://api.github.com/users/mhd999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-08T16:16:23Z","updated_at":"2015-08-08T16:16:23Z","closed_at":null,"body":"Am i start using elasticsearch and mongoosastic just recently i understand the basics only.\r\nwhat am trying to do is to index filed in the items object. \r\nFirst i used es_indexed:true in all the filed i want to index them \r\n\r\n\t`title: {type: String, es_indexed:true},\r\n\tdescription: {type: String, es_indexed:true'},\r\n\tvendor: {type: String, es_indexed:true},`\r\nWorks fine on the _search i found the objects of items:\r\n`{\"_index\":\"items\",\"_type\":\"item\",\"_id\":\"55afe310eec377941cf70d44\",\"_score\":1.0,\"_source\":{\"title\":\"dress to search\",\"comments\":[],\"likes\":[]}},{\"_index\":\"items\",\"_type\":\"item\",\"_id\":\"55afe298eec377941cf70d43\",\"_score\":1.0,\"_source\":{\"title\":\"dress to search\",\"comments\":[],\"likes\":[]}},{\"_index\":\"items\",\"_type\":\"item\",\"_id\":\"55afe220eec377941cf70d42\",\"_score\":1.0,\"_source\":{\"title\":\"dress to search\",\"comments\":[],\"likes\":[]}},`\r\n\r\nI don't know why the comment and likes arrays are there! but it was fine.\r\nThen i used mapping and my object field looked like this\r\n\r\n`title: {type: String, es_boost:2.0},\r\ndescription: {type: String, es_type:'string'},\r\nvendor: {type: String, es_type:'string'},\r\nvendorId: {type:String, es_type:'integer'},`\r\n\r\nThe problem here is under _search i found the object as it stored in the DB like this:\r\n`{\"_index\":\"items\",\"_type\":\"item\",\"_id\":\"55c4e127da55af70163636cd\",\"_score\":1.0,\"_source\":{\"title\":\"dress to search\",\"price\":200,\"description\":\"this is a dress to search\",\"vendor\":\"Mohammad Al mouallem\",\"vendorId\":\"552d84bb05da7ed000869585\",\"totalComments\":0,\"totalLikes\":0,\"comments\":[],\"likes\":[],\"date\":\"2015-08-07T16:47:35.892Z\"}}]}}`\r\n\r\nall the fields are there now and i want to ask is this the right way of how elasticsearch working !"}}