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/10/09 17:06:22 UTC
indexing problem
Hi All,
i m trying to index my data using post.jar and i get the following error
<title>Error 500 </title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>name and value cannot both be empty
java.lang.IllegalArgumentException: name and value cannot both be empty
at org.apache.lucene.document.Field.<init>(Field.java:197)
the only required field in my schema is identifier (i started with the
default schema.xml and made my changes on that)
How do i debug this? Is there a better way to index data?
Best regards,
Urvashi
Re: indexing problem
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Does all your XML look like this sample here - http://wiki.apache.org/
solr/UpdateXmlMessages ??
Are you sending in any <field> elements without a name attribute or
with a blank value?
Erik
On Oct 9, 2007, at 12:45 PM, Urvashi Gadi wrote:
> is there a way to find out the line number in the xml file? the xml
> file i m
> using is quite large.
>
>
>
> On 10/9/07, Erik Hatcher <er...@ehatchersolutions.com> wrote:
>>
>> What is the XML you POSTed into Solr?
>>
>> It looks like somehow you've sent in a field with no name or value,
>> though this is an error that probably should be caught higher up in
>> Solr.
>>
>> Erik
>>
>>
>> On Oct 9, 2007, at 11:06 AM, Urvashi Gadi wrote:
>>
>>> Hi All,
>>>
>>> i m trying to index my data using post.jar and i get the following
>>> error
>>>
>>>
>>> <title>Error 500 </title>
>>> </head>
>>> <body><h2>HTTP ERROR: 500</h2><pre>name and value cannot both be
>>> empty
>>>
>>> java.lang.IllegalArgumentException: name and value cannot both be
>>> empty
>>> at org.apache.lucene.document.Field.<init>(Field.java:
>>> 197)
>>>
>>>
>>> the only required field in my schema is identifier (i started
>>> with the
>>> default schema.xml and made my changes on that)
>>>
>>> How do i debug this? Is there a better way to index data?
>>>
>>> Best regards,
>>>
>>> Urvashi
>>
>>
Re: indexing problem
Posted by Urvashi Gadi <ur...@gmail.com>.
is there a way to find out the line number in the xml file? the xml file i m
using is quite large.
On 10/9/07, Erik Hatcher <er...@ehatchersolutions.com> wrote:
>
> What is the XML you POSTed into Solr?
>
> It looks like somehow you've sent in a field with no name or value,
> though this is an error that probably should be caught higher up in
> Solr.
>
> Erik
>
>
> On Oct 9, 2007, at 11:06 AM, Urvashi Gadi wrote:
>
> > Hi All,
> >
> > i m trying to index my data using post.jar and i get the following
> > error
> >
> >
> > <title>Error 500 </title>
> > </head>
> > <body><h2>HTTP ERROR: 500</h2><pre>name and value cannot both be empty
> >
> > java.lang.IllegalArgumentException: name and value cannot both be
> > empty
> > at org.apache.lucene.document.Field.<init>(Field.java:
> > 197)
> >
> >
> > the only required field in my schema is identifier (i started with the
> > default schema.xml and made my changes on that)
> >
> > How do i debug this? Is there a better way to index data?
> >
> > Best regards,
> >
> > Urvashi
>
>
Re: indexing problem
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
What is the XML you POSTed into Solr?
It looks like somehow you've sent in a field with no name or value,
though this is an error that probably should be caught higher up in
Solr.
Erik
On Oct 9, 2007, at 11:06 AM, Urvashi Gadi wrote:
> Hi All,
>
> i m trying to index my data using post.jar and i get the following
> error
>
>
> <title>Error 500 </title>
> </head>
> <body><h2>HTTP ERROR: 500</h2><pre>name and value cannot both be empty
>
> java.lang.IllegalArgumentException: name and value cannot both be
> empty
> at org.apache.lucene.document.Field.<init>(Field.java:
> 197)
>
>
> the only required field in my schema is identifier (i started with the
> default schema.xml and made my changes on that)
>
> How do i debug this? Is there a better way to index data?
>
> Best regards,
>
> Urvashi