Re: Sending http post to solr indexing

2012-05-20 Thread Gora Mohanty
On 21 May 2012 06:05, Mansour Al Akeel wrote: > Sorry, > forgot to include the url and the error message: >    private static String url = "http://localhost:8080/solr/update";; As the error message indicates, the normal request handler is expecting XML. For indexing JSON, please see: http://wiki.

Re: Sending http post to solr indexing

2012-05-20 Thread Mansour Al Akeel
ase you just need the JSON array squares brackets around > the doument or list of documents. > > And also "update/json" in the URL. > > -- Jack Krupansky > > -Original Message- From: Mansour Al Akeel > Sent: Sunday, May 20, 2012 8:35 PM > To: solr-user@luce

Re: Sending http post to solr indexing

2012-05-20 Thread Jack Krupansky
nt: Sunday, May 20, 2012 8:35 PM To: solr-user@lucene.apache.org Subject: Re: Sending http post to solr indexing Sorry, forgot to include the url and the error message: private static String url = "http://localhost:8080/solr/update";; The error I am getting on t

Re: Sending http post to solr indexing

2012-05-20 Thread Mansour Al Akeel
Sorry, forgot to include the url and the error message: private static String url = "http://localhost:8080/solr/update";; The error I am getting on the server is: SEVERE: org.apache.solr.common.SolrException: Unexpected character '{' (code 123) in prolog; expected '<' at [row,col {unknown-sou