Solr-5.4.0 not accepting json input -


i trying use solr-5.4.0. need implement, search functionality using solr json files.i have started solr in command prompt.now using cygwin update json.but showing following html error.i didn't got clear idea work in solr.please solve this.

$ curl http://localhost:8983/solr/update -h 'content-type:application/json' -d '  [  {   "id"        : "testdoc1",   "title"     : {"set":"test1"},   "revision"  : {"inc":3},   "publisher" : {"add":"testpublisher"}   "_version_" : {12345}  } ]'   <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>error 404 not found</title> </head> <body><h2>http error 404</h2> <p>problem accessing /solr/update. reason: <pre>    not found</pre></p><hr><i><small>powered jetty://</small></i><hr/>  </body> </html> 

your url doesn't include core name. url http://localhost:8983/solr/corename/update - you're missing core name part.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -