On 6/3/2014 12:57 AM, binaychap wrote:
> Solr version 4.8.1
> I download the Solr and run via the start.jar and i am able to  index the
> json data through post.jar and i read the solr in action book and follow the
> instruction of book and copy the example and rename the realEstate and
> collection1 to real and then change the core.properties name=real and start
> the solr and it's run smoothly but when i try to index the data with
> post.jar or curl tag it throw following error.
> 
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> <title>Error 404 Not Found</title>
> </head>
> <body>
> HTTP ERROR: 404
> 
> <p>Problem accessing /update/json. Reason:
> <pre>    Not Found</pre></p>
> <hr />/<small>Powered by Jetty://</small>/

Solr 4.x no longer has the extra update handlers in its example, things
like /update/json.  The /update handler will index all the formats that
were handled by separate handlers in the Solr 3.x example, you just have
to include the proper content-type HTTP header.  I believe in this case,
this is the HTTP header you need:

Content-Type: application/json

Thanks,
Shawn

Reply via email to