{"action":"created","issue":{"url":"https://api.github.com/repos/django-haystack/django-haystack/issues/380","labels_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/380/comments","events_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/380/events","html_url":"https://github.com/django-haystack/django-haystack/issues/380","id":1092300,"number":380,"title":"Allow prepare() to skip indexing of an object","user":{"login":"gtaylor","id":75556,"avatar_url":"https://avatars.githubusercontent.com/u/75556?v=3","gravatar_id":"","url":"https://api.github.com/users/gtaylor","html_url":"https://github.com/gtaylor","followers_url":"https://api.github.com/users/gtaylor/followers","following_url":"https://api.github.com/users/gtaylor/following{/other_user}","gists_url":"https://api.github.com/users/gtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/gtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtaylor/subscriptions","organizations_url":"https://api.github.com/users/gtaylor/orgs","repos_url":"https://api.github.com/users/gtaylor/repos","events_url":"https://api.github.com/users/gtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/gtaylor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2011-06-21T15:04:38Z","updated_at":"2015-05-12T11:59:10Z","closed_at":null,"body":"SearchIndex.index_queryset() may be used to define a queryset of object to index, but this leaves us without the ability to filter based on methods or properties. \r\n\r\nIt looks like should_update() is not currently being called, so there's no way to selectively skip the indexing of an object by a property/method.\r\n\r\nPerhaps returning an empty dict from within prepare() would signify that the object should be skipped?"},"comment":{"url":"https://api.github.com/repos/django-haystack/django-haystack/issues/comments/101251282","html_url":"https://github.com/django-haystack/django-haystack/issues/380#issuecomment-101251282","issue_url":"https://api.github.com/repos/django-haystack/django-haystack/issues/380","id":101251282,"user":{"login":"chronossc","id":208856,"avatar_url":"https://avatars.githubusercontent.com/u/208856?v=3","gravatar_id":"","url":"https://api.github.com/users/chronossc","html_url":"https://github.com/chronossc","followers_url":"https://api.github.com/users/chronossc/followers","following_url":"https://api.github.com/users/chronossc/following{/other_user}","gists_url":"https://api.github.com/users/chronossc/gists{/gist_id}","starred_url":"https://api.github.com/users/chronossc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronossc/subscriptions","organizations_url":"https://api.github.com/users/chronossc/orgs","repos_url":"https://api.github.com/users/chronossc/repos","events_url":"https://api.github.com/users/chronossc/events{/privacy}","received_events_url":"https://api.github.com/users/chronossc/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T11:59:10Z","updated_at":"2015-05-12T11:59:10Z","body":"@acdha The commit is at https://github.com/chronossc/django-haystack/commit/5745c0c9a2c6b69b282f1c8765942ef00d1e43bc and can be merged to 2.3.x versions, however you do not have a 2.3.x branch and this change in my opnion isn't for a 2.4.x version (master). Do you mind create a 2.3.x branch from last 2.3.x tag so I can do a pull request :)?\r\n\r\nThx in advance!"}}