{"action":"opened","issue":{"url":"https://api.github.com/repos/lbdremy/solr-node-client/issues/164","labels_url":"https://api.github.com/repos/lbdremy/solr-node-client/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/lbdremy/solr-node-client/issues/164/comments","events_url":"https://api.github.com/repos/lbdremy/solr-node-client/issues/164/events","html_url":"https://github.com/lbdremy/solr-node-client/issues/164","id":116663979,"number":164,"title":"client.add has 3 parameters and 404 error?","user":{"login":"joshterrill","id":5368757,"avatar_url":"https://avatars.githubusercontent.com/u/5368757?v=3","gravatar_id":"","url":"https://api.github.com/users/joshterrill","html_url":"https://github.com/joshterrill","followers_url":"https://api.github.com/users/joshterrill/followers","following_url":"https://api.github.com/users/joshterrill/following{/other_user}","gists_url":"https://api.github.com/users/joshterrill/gists{/gist_id}","starred_url":"https://api.github.com/users/joshterrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshterrill/subscriptions","organizations_url":"https://api.github.com/users/joshterrill/orgs","repos_url":"https://api.github.com/users/joshterrill/repos","events_url":"https://api.github.com/users/joshterrill/events{/privacy}","received_events_url":"https://api.github.com/users/joshterrill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T23:17:42Z","updated_at":"2015-11-12T23:17:42Z","closed_at":null,"body":"I'm using `solr-node-client` in an express app. According to the documentation I should be able to do something like this:\r\n```\r\nclient.add({text: \"This is a test\"},function(err,obj){\r\n  if(err) {\r\n    res.json({error: err})\r\n  } else {\r\n     res.json({object: obj})\r\n  }\r\n});\r\n```\r\n\r\nHowever I get an error that says\r\n`{\"error\":{\"name\":\"SolrError\",\"message\":\"Not Found\\r\\nRequest URL: http://127.0.0.1:8983/solr/update/json?&wt=json\\r\\nRequest method: POST\\r\\nStatus code: 404 - Not Found\\r\\nRequest headers: \\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 37\\r\\naccept: application/json; charset=utf-8\\r\\nhost: 127.0.0.1:8983\\r\\nResponse headers: \\r\\ncontent-type: text/html; charset=ISO-8859-1\\r\\ncache-control: must-revalidate,no-cache,no-store\\r\\ncontent-length: 300\\r\\nconnection: close\"}}`\r\n\r\nAs you can see, my object I'm sending through isn't even being seen. However when I add some irrelevant variable or something before my object like this:\r\n\r\n```\r\nclient.add(\"meh\", {text: \"This is a test\"},function(err,obj){\r\n  if(err) {\r\n    res.json({error: err})\r\n  } else {\r\n    res.json({status: obj})\r\n  }\r\n});\r\n```\r\n\r\nI get the same error, but with my content in it:\r\n`{\"error\":{\"name\":\"SolrError\",\"message\":\"Not Found\\r\\nRequest URL: http://127.0.0.1:8983/solr/update/json?text=This%20is%20a%20test.&wt=json\\r\\nRequest method: POST\\r\\nStatus code: 404 - Not Found\\r\\nRequest headers: \\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 7\\r\\naccept: application/json; charset=utf-8\\r\\nhost: 127.0.0.1:8983\\r\\nResponse headers: \\r\\ncontent-type: text/html; charset=ISO-8859-1\\r\\ncache-control: must-revalidate,no-cache,no-store\\r\\ncontent-length: 300\\r\\nconnection: close\"}}`\r\n\r\nI don't know why it's saying it's unreachable. I was having the same issue when I would do a query, however I was able to fix it by adding the name of my core to the first parameter like this:\r\n`client.get('gettingstarted/select', params, function(err, obj) {})`\r\n\r\nI don't see how to do that with the `client.add()` method, though."}}