{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1027","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1027/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1027/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1027/events","html_url":"https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/1027","id":134777804,"number":1027,"title":"Index only specific objects","user":{"login":"behramcelen","id":4572080,"avatar_url":"https://avatars.githubusercontent.com/u/4572080?v=3","gravatar_id":"","url":"https://api.github.com/users/behramcelen","html_url":"https://github.com/behramcelen","followers_url":"https://api.github.com/users/behramcelen/followers","following_url":"https://api.github.com/users/behramcelen/following{/other_user}","gists_url":"https://api.github.com/users/behramcelen/gists{/gist_id}","starred_url":"https://api.github.com/users/behramcelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behramcelen/subscriptions","organizations_url":"https://api.github.com/users/behramcelen/orgs","repos_url":"https://api.github.com/users/behramcelen/repos","events_url":"https://api.github.com/users/behramcelen/events{/privacy}","received_events_url":"https://api.github.com/users/behramcelen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-19T05:39:09Z","updated_at":"2016-03-09T21:36:50Z","closed_at":null,"body":"I want index only published journal object on my project. But i can not managed :(\r\nMy elastica.yml like below for journal type;\r\n```\r\njournal:\r\n          mappings:\r\n            id: { type: integer }\r\n            translations:\r\n              type: \"object\"\r\n              properties:\r\n                locale:\r\n                  type: string\r\n                title:\r\n                  type: string\r\n                subtitle:\r\n                  type: string\r\n                description:\r\n                  type: string\r\n                titleAbbr:\r\n                  type: string\r\n            title:\r\n              type: string\r\n              fields:\r\n                raw:\r\n                  type: string\r\n                  index: not_analyzed\r\n            slug: { type: string }\r\n            subtitle: { type: string }\r\n            description: { type: string }\r\n            issn: { type: string }\r\n            eissn: { type: string }\r\n            founded: { type: date }\r\n            tags:\r\n              analyzer: \"keyword\"\r\n              type: string\r\n            status: { \"index\": \"not_analyzed\" }\r\n            published: { \"index\": \"not_analyzed\",type: boolean }\r\n            accessModal: { type: integer }\r\n            subjects:\r\n              type: object\r\n              properties:\r\n                id: { type: integer }\r\n                subject: { type: string, index: not_analyzed }\r\n            publisher:\r\n              type: object\r\n              properties:\r\n                name:\r\n                  type: string\r\n                  fields:\r\n                    raw:\r\n                      type: string\r\n                      index: not_analyzed\r\n                slug: { type: string }\r\n                publisherType:\r\n                  type: object\r\n                  properties:\r\n                    name: { index: not_analyzed }\r\n```\r\nOn my system we only expose `published = status(1)` journal object on public pages. So ı don't want to index to elasticsearch unpublished objects. How can i manage? "},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/comments/194517213","html_url":"https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/1027#issuecomment-194517213","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1027","id":194517213,"user":{"login":"ruudvanderweijde","id":3205112,"avatar_url":"https://avatars.githubusercontent.com/u/3205112?v=3","gravatar_id":"","url":"https://api.github.com/users/ruudvanderweijde","html_url":"https://github.com/ruudvanderweijde","followers_url":"https://api.github.com/users/ruudvanderweijde/followers","following_url":"https://api.github.com/users/ruudvanderweijde/following{/other_user}","gists_url":"https://api.github.com/users/ruudvanderweijde/gists{/gist_id}","starred_url":"https://api.github.com/users/ruudvanderweijde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruudvanderweijde/subscriptions","organizations_url":"https://api.github.com/users/ruudvanderweijde/orgs","repos_url":"https://api.github.com/users/ruudvanderweijde/repos","events_url":"https://api.github.com/users/ruudvanderweijde/events{/privacy}","received_events_url":"https://api.github.com/users/ruudvanderweijde/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T21:36:50Z","updated_at":"2016-03-09T21:36:50Z","body":"Same wish as https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/1047 \""}}