{"action":"opened","issue":{"url":"https://api.github.com/repos/blevesearch/bleve/issues/168","labels_url":"https://api.github.com/repos/blevesearch/bleve/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/blevesearch/bleve/issues/168/comments","events_url":"https://api.github.com/repos/blevesearch/bleve/issues/168/events","html_url":"https://github.com/blevesearch/bleve/issues/168","id":58944985,"number":168,"title":"IndexMapping.mapDocument() method should be public API?","user":{"login":"steveyen","id":30640,"avatar_url":"https://avatars.githubusercontent.com/u/30640?v=3","gravatar_id":"","url":"https://api.github.com/users/steveyen","html_url":"https://github.com/steveyen","followers_url":"https://api.github.com/users/steveyen/followers","following_url":"https://api.github.com/users/steveyen/following{/other_user}","gists_url":"https://api.github.com/users/steveyen/gists{/gist_id}","starred_url":"https://api.github.com/users/steveyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveyen/subscriptions","organizations_url":"https://api.github.com/users/steveyen/orgs","repos_url":"https://api.github.com/users/steveyen/repos","events_url":"https://api.github.com/users/steveyen/events{/privacy}","received_events_url":"https://api.github.com/users/steveyen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T18:10:28Z","updated_at":"2015-02-25T18:10:28Z","closed_at":null,"body":"I have a case where I've a batch of documents, but some of those documents in the batch are (correctly) rejected by the IndexMapping.mapDocument() analysis.  (e.g., they might be non-JSON docs.)  So, the whole Index.Batch() invocation (correctly) fails.\r\n\r\nIn my app scenario, though, I just want to skip those un-mappable/un-analyzable documents and keep on truckin'.\r\n\r\nSo, I figured that I would graduate from using the easy-to-use \"porcelain\" API's and just use the lower-level IndexMapping and lower-level index.Batch interfaces directly, so that I would be able to have more granular error handling codepaths.\r\n\r\nAlong the way, I was blocked in \"going lower level\" where bleve.IndexMapping doesn't currently expose a public MapDocument() method.  (Instead, it has a non-public IndexMapping.mapDocument() method.)\r\n\r\nFor more details, the corresponding application level issue is....    https://github.com/couchbaselabs/cbft/issues/31"}}