Keep having error on "unknown field"

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Keep having error on "unknown field"

Tiong Jeffrey
Hi,

When I tried to use jetty to index my xml, i kept getting the following
error even though I have defined properly in the schema.xml.

The error is -
"SEVERE: org.apache.solr.core.SolrException: ERROR:unknown field 'name'..."

In my schema, it was defined like this -
"   <filed name="name" type="string" indexed="true" stored="true"
multiValued="true"/>   "

The only different between this field and other field is that this field has
a lot of value per document, but i already set it multiValued=true. Other
than that, i don't understand what else that will makesthis different from
the other field.

Thanks a lot!

Jef
Reply | Threaded
Open this post in threaded view
|

Re: Keep having error on "unknown field"

Yonik Seeley-2
On 6/14/07, Tiong Jeffrey <[hidden email]> wrote:
> The error is -
> "SEVERE: org.apache.solr.core.SolrException: ERROR:unknown field 'name'..."
>
> In my schema, it was defined like this -
> "   <filed name="name" type="string" indexed="true" stored="true"
> multiValued="true"/>   "

  filed => field

-Yonik
Reply | Threaded
Open this post in threaded view
|

Re: Keep having error on "unknown field"

Tiong Jeffrey
arh! i spent 6-7 hours on this error and didnt see this! thanks!

On 6/15/07, Yonik Seeley <[hidden email]> wrote:

>
> On 6/14/07, Tiong Jeffrey <[hidden email]> wrote:
> > The error is -
> > "SEVERE: org.apache.solr.core.SolrException: ERROR:unknown field
> 'name'..."
> >
> > In my schema, it was defined like this -
> > "   <filed name="name" type="string" indexed="true" stored="true"
> > multiValued="true"/>   "
>
>   filed => field
>
> -Yonik
>
Reply | Threaded
Open this post in threaded view
|

Re: Keep having error on "unknown field"

Walter Underwood, Netflix
Do we have a bug filed on this? Solr really should have complained
about the unknown element. --wunder

On 6/14/07 4:54 PM, "Tiong Jeffrey" <[hidden email]> wrote:

> arh! i spent 6-7 hours on this error and didnt see this! thanks!
>
> On 6/15/07, Yonik Seeley <[hidden email]> wrote:
>>
>> On 6/14/07, Tiong Jeffrey <[hidden email]> wrote:
>>> The error is -
>>> "SEVERE: org.apache.solr.core.SolrException: ERROR:unknown field
>> 'name'..."
>>>
>>> In my schema, it was defined like this -
>>> "   <filed name="name" type="string" indexed="true" stored="true"
>>> multiValued="true"/>   "
>>
>>   filed => field
>>
>> -Yonik
>>

Reply | Threaded
Open this post in threaded view
|

Re: Keep having error on "unknown field"

Ryan McKinley
SOLR-133 includes this fix...  it squawks if it hits an unknown tag.


Walter Underwood wrote:

> Do we have a bug filed on this? Solr really should have complained
> about the unknown element. --wunder
>
> On 6/14/07 4:54 PM, "Tiong Jeffrey" <[hidden email]> wrote:
>
>> arh! i spent 6-7 hours on this error and didnt see this! thanks!
>>
>> On 6/15/07, Yonik Seeley <[hidden email]> wrote:
>>> On 6/14/07, Tiong Jeffrey <[hidden email]> wrote:
>>>> The error is -
>>>> "SEVERE: org.apache.solr.core.SolrException: ERROR:unknown field
>>> 'name'..."
>>>> In my schema, it was defined like this -
>>>> "   <filed name="name" type="string" indexed="true" stored="true"
>>>> multiValued="true"/>   "
>>>   filed => field
>>>
>>> -Yonik
>>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Keep having error on "unknown field"

Chris Hostetter-3

: SOLR-133 includes this fix...  it squawks if it hits an unknown tag.

Really?  i thought SOLR-133 only changed the way the incoming XML is
parsed, is it also changing hte way the schema.xml is parsed?

as i understand it the update message was correctly formated, it just
refered to a field that didn't exist.

: >>>> "SEVERE: org.apache.solr.core.SolrException: ERROR:unknown field
: >>> 'name'..."
: >>>> In my schema, it was defined like this -
: >>>> "   <filed name="name" type="string" indexed="true" stored="true"
: >>>> multiValued="true"/>   "



-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Keep having error on "unknown field"

Ryan McKinley
Chris Hostetter wrote:
> : SOLR-133 includes this fix...  it squawks if it hits an unknown tag.
>
> Really?  i thought SOLR-133 only changed the way the incoming XML is
> parsed, is it also changing hte way the schema.xml is parsed?
>

Sorry my mistake -- It parses incoming XML spitting out errors if the
xml names are wrong...

This is a different issue, and should we should open something in JIRA...