{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/440","repository_url":"https://api.github.com/repos/mongodb-labs/mongo-connector","labels_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/440/comments","events_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/440/events","html_url":"https://github.com/mongodb-labs/mongo-connector/issues/440","id":152037334,"number":440,"title":"Mongodb ObjectIds have dashes when indexed in solr","user":{"login":"prasadh13","id":8535194,"avatar_url":"https://avatars.githubusercontent.com/u/8535194?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadh13","html_url":"https://github.com/prasadh13","followers_url":"https://api.github.com/users/prasadh13/followers","following_url":"https://api.github.com/users/prasadh13/following{/other_user}","gists_url":"https://api.github.com/users/prasadh13/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadh13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadh13/subscriptions","organizations_url":"https://api.github.com/users/prasadh13/orgs","repos_url":"https://api.github.com/users/prasadh13/repos","events_url":"https://api.github.com/users/prasadh13/events{/privacy}","received_events_url":"https://api.github.com/users/prasadh13/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/labels/waiting%20for%20input","name":"waiting for input","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-30T15:46:57Z","updated_at":"2016-05-10T20:23:12Z","closed_at":null,"body":"When the documents are indexed in Solr, the ids are populated with something like this -\r\n da7885a3-8a83-4ed0-a593-7148514978db\r\nand mongodb id is  \"_id\" : ObjectId(\"56e80dac973675355716f6be\")\r\n\r\nCan someone explain what is going on here?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/comments/218279489","html_url":"https://github.com/mongodb-labs/mongo-connector/issues/440#issuecomment-218279489","issue_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/440","id":218279489,"user":{"login":"prasadh13","id":8535194,"avatar_url":"https://avatars.githubusercontent.com/u/8535194?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadh13","html_url":"https://github.com/prasadh13","followers_url":"https://api.github.com/users/prasadh13/followers","following_url":"https://api.github.com/users/prasadh13/following{/other_user}","gists_url":"https://api.github.com/users/prasadh13/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadh13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadh13/subscriptions","organizations_url":"https://api.github.com/users/prasadh13/orgs","repos_url":"https://api.github.com/users/prasadh13/repos","events_url":"https://api.github.com/users/prasadh13/events{/privacy}","received_events_url":"https://api.github.com/users/prasadh13/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T20:23:12Z","updated_at":"2016-05-10T20:23:12Z","body":"I am runnning it as a python service.\r\nHere is my config file-\r\n{\r\n    \"__comment__\": \"Configuration options starting with '__' are disabled\",\r\n    \"__comment__\": \"To enable them, remove the preceding '__'\",\r\n\r\n    \"mainAddress\": \"172.31.45.59:27017\",\r\n    \"oplogFile\": \"/home/ubuntu/mongo-connector/oplog.timestamp\",\r\n    \"noDump\": false,\r\n    \"batchSize\": -1,\r\n    \"verbosity\": 3,\r\n    \"continueOnError\": false,\r\n\r\n    \"logging\": {\r\n        \"type\": \"file\",\r\n        \"filename\": \"/var/log/mongo-connector/mongo-connector.log\",\r\n        \"__format\": \"%(asctime)s [%(levelname)s] %(name)s:%(lineno)d - %(message)s\",\r\n        \"__rotationWhen\": \"D\",\r\n        \"__rotationInterval\": 1,\r\n        \"__rotationBackups\": 10,\r\n\r\n        \"__type\": \"syslog\",\r\n        \"__host\": \"localhost:514\"\r\n    },\r\n    \"docManagers\": [\r\n        {\r\n            \"docManager\": \"solr_doc_manager\",\r\n            \"targetURL\": \"http://localhost:8983/solr/sambuq\",\r\n            \"__bulkSize\": 1000,\r\n            \"__uniqueKey\": \"id\",\r\n            \"__autoCommitInterval\": 0\r\n        }\r\n    ]\r\n}\r\n\r\nits running on python 2.7.6\r\n\r\nThe documents were indexed with their original ids locally. But when I pushed the same code to the server, it indexed wrong ids.\r\nUpon checking, I have a mongodb version difference. I am running 3.2.1 locally. Do you think that is the issue?"}}