You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Urvashi Gadi <ur...@gmail.com> on 2007/09/26 19:02:21 UTC

How to get debug information while indexing?

Hi,

I am trying to create my own application using SOLR and while trying to
index my data i get

Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/update or
Server returned HTTP response code: 500 for URL:
http://localhost:8983/solr/update

Is there a way to get more debug information than this (any logs, which file
is wrong, schema.xml? etc)

I have modified schema.xml and have my own xml file for indexing.

Thanks for help.

Urvashi

Re: How to get debug information while indexing?

Posted by Yonik Seeley <yo...@apache.org>.
On 9/26/07, Urvashi Gadi <ur...@gmail.com> wrote:
> Hi,
>
> I am trying to create my own application using SOLR and while trying to
> index my data i get
>
> Server returned HTTP response code: 400 for URL:
> http://localhost:8983/solr/update or
> Server returned HTTP response code: 500 for URL:
> http://localhost:8983/solr/update
>
> Is there a way to get more debug information than this (any logs, which file
> is wrong, schema.xml? etc)

Both the HTTP reason and response body should contain more information.
What are you using to communicate with Solr?
Try a bad request with curl and you can see the info that comes back:

Yonik@spidey /cygdrive/f/code/lucene
$ curl -i http://localhost:8983/solr/select?q=foo:bar
HTTP/1.1 400 undefined_field_foo
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1398
Server: Jetty(6.1.3)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 400 </title>
</head>
<body><h2>HTTP ERROR: 400</h2><pre>undefined field foo</pre>
<p>RequestURI=/solr/select</p><p><i><small><a href="http://jetty.mortbay.org/">P
owered by Jetty://</a></small></i></p><br/>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>


Errors should also be logged.

-Yonik