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 Elise Dawn Conradi <El...@stud.jbi.hio.no> on 2008/11/20 12:22:42 UTC

Total newbie question: "unknown field"

Hi all!

For a school project at the master's program in LIS at Oslo University  
College, I am trying to index Marc-records to make a faceted browser  
of digital books.

So far, I've transformed the Marc-records to Solr-friendly records. I  
am now trying to update my index (for the first time) with an xml-file  
but I keep getting the following error report:

Error: unknown field 'author'
Description: The request sent by the client was syntactically incorrect

The documents I am trying to index look like this:
<add>
<doc>
   <field name="id">8A7567AE1079C773</field>
   <field name="author">Pusey, E. B.</field>
   <field name="authorBirth">1800</field>
   <field name="authorDeath">1882</field>
   <field name="title">An eirenicon: in a letter to the author of "The  
Christian year" /</field>
   <field name="isbn">0837091020</field>
   <field name="placeOfPublication">Oxford</field>
   <field name="pageCount">409</field>
   <field name="subjectPerson">Keble, John,</field>
   <field name="subjectPerson">Manning, Henry Edward,</field>
   <field name="subjectCorporation">Catholic Church</field>
   <field name="subjectCorporation">Church of England</field>
   <field name="subjectCorporation">Church of England</field>
   <field name="subject">Christian union</field>
   <field name="subject">Oxford movement</field>
   <field name="language">eng</field>
   <field name="dateOfPublication">1865</field>
   <field name="illustrations"/>
   <field name="illustrations"/>
   <field name="illustrations"/>
   <field name="illustrations"/>
   <field name="targetAudience"/>
   <field name="natureOfContents"/>
   <field name="natureOfContents">Bibliographies</field>
   <field name="natureOfContents"/>
   <field name="natureOfContents"/>
   <field name="index"/>
   <field name="literaryForm"/>
</doc>
</add>

And the field section of my schema.xml looks like this:

<field name="author" type="string" indexed="true" stored="true"  
multiValued="true"/>
<field name="authorBirth" type="string" indexed="true" stored="true"/>
<field name="authorDeath" type="string" indexed="true" stored="true"/>
<field name="dateOfPublication" type="string" indexed="true" stored="true"/>
<field name="ddc" type="string" indexed="true" stored="true"  
multiValued="true"/>
<field name="generalNote" type="string" stored="true" multiValued="true"/>
<field name="id" type="string" indexed="true" stored="true" required="true"/>
<field name="illustrations" type="textTight" indexed="true" stored="true"/>
<field name="index" type="textTight" indexed="true" stored="true"/>
<field name="isbn" type="string" indexed="true" stored="true"  
multiValued="true"/>
<field name="language" type="textTight" indexed="true" stored="true"/>
<field name="literaryForm" type="textTight" indexed="true" stored="true"/>
<field name="natureOfContents" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="pageCount" type="sint" indexed="true" stored="true"/>
<field name="placeOfPublication" type="string" indexed="true" stored="true"/>
<field name="subjectPerson" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="subjectCorporation" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="subjectMeeting" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="subjectTitle" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="subjectPlace" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="subject" type="textTight" indexed="true" stored="true"  
multiValued="true"/>
<field name="summary" type="string" stored="true" multiValued="true"/>
<field name="targetAudience" type="textTight" indexed="true"  
stored="true" multiValued="true"/>
<field name="title" type="textTight" indexed="true" stored="true"  
multiValued="true"/>

Is there anyone out there who knows how I can fix this problem?

Sincerely,
Elise


Re: Total newbie question: "unknown field"

Posted by Elise Dawn Conradi <El...@stud.jbi.hio.no>.
Hi again!

I've figured it out. Hadn't reloaded Solr after updating the schema. Doh.

Regards,
Elise


Quoting Elise Dawn Conradi <El...@stud.jbi.hio.no>:

> Hi all!
>
> For a school project at the master's program in LIS at Oslo  
> University College, I am trying to index Marc-records to make a  
> faceted browser of digital books.
>
> So far, I've transformed the Marc-records to Solr-friendly records.  
> I am now trying to update my index (for the first time) with an  
> xml-file but I keep getting the following error report:
>
> Error: unknown field 'author'
> Description: The request sent by the client was syntactically incorrect
>
> The documents I am trying to index look like this:
> <add>
> <doc>
>   <field name="id">8A7567AE1079C773</field>
>   <field name="author">Pusey, E. B.</field>
>   <field name="authorBirth">1800</field>
>   <field name="authorDeath">1882</field>
>   <field name="title">An eirenicon: in a letter to the author of  
> "The Christian year" /</field>
>   <field name="isbn">0837091020</field>
>   <field name="placeOfPublication">Oxford</field>
>   <field name="pageCount">409</field>
>   <field name="subjectPerson">Keble, John,</field>
>   <field name="subjectPerson">Manning, Henry Edward,</field>
>   <field name="subjectCorporation">Catholic Church</field>
>   <field name="subjectCorporation">Church of England</field>
>   <field name="subjectCorporation">Church of England</field>
>   <field name="subject">Christian union</field>
>   <field name="subject">Oxford movement</field>
>   <field name="language">eng</field>
>   <field name="dateOfPublication">1865</field>
>   <field name="illustrations"/>
>   <field name="illustrations"/>
>   <field name="illustrations"/>
>   <field name="illustrations"/>
>   <field name="targetAudience"/>
>   <field name="natureOfContents"/>
>   <field name="natureOfContents">Bibliographies</field>
>   <field name="natureOfContents"/>
>   <field name="natureOfContents"/>
>   <field name="index"/>
>   <field name="literaryForm"/>
> </doc>
> </add>
>
> And the field section of my schema.xml looks like this:
>
> <field name="author" type="string" indexed="true" stored="true"  
> multiValued="true"/>
> <field name="authorBirth" type="string" indexed="true" stored="true"/>
> <field name="authorDeath" type="string" indexed="true" stored="true"/>
> <field name="dateOfPublication" type="string" indexed="true" stored="true"/>
> <field name="ddc" type="string" indexed="true" stored="true"  
> multiValued="true"/>
> <field name="generalNote" type="string" stored="true" multiValued="true"/>
> <field name="id" type="string" indexed="true" stored="true" required="true"/>
> <field name="illustrations" type="textTight" indexed="true" stored="true"/>
> <field name="index" type="textTight" indexed="true" stored="true"/>
> <field name="isbn" type="string" indexed="true" stored="true"  
> multiValued="true"/>
> <field name="language" type="textTight" indexed="true" stored="true"/>
> <field name="literaryForm" type="textTight" indexed="true" stored="true"/>
> <field name="natureOfContents" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="pageCount" type="sint" indexed="true" stored="true"/>
> <field name="placeOfPublication" type="string" indexed="true" stored="true"/>
> <field name="subjectPerson" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="subjectCorporation" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="subjectMeeting" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="subjectTitle" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="subjectPlace" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="subject" type="textTight" indexed="true" stored="true"  
> multiValued="true"/>
> <field name="summary" type="string" stored="true" multiValued="true"/>
> <field name="targetAudience" type="textTight" indexed="true"  
> stored="true" multiValued="true"/>
> <field name="title" type="textTight" indexed="true" stored="true"  
> multiValued="true"/>
>
> Is there anyone out there who knows how I can fix this problem?
>
> Sincerely,
> Elise
>
>




Re: Total newbie question: "unknown field"

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Nov 20, 2008, at 6:22 AM, Elise Dawn Conradi wrote:
> For a school project at the master's program in LIS at Oslo  
> University College, I am trying to index Marc-records to make a  
> faceted browser of digital books.

Are you aware of the library projects that leverage Solr?  Blacklight,  
VuFind, fac-back-opac are the big ones.  There's also a SolrMarc  
project out there with a very customizable MARC indexer.

Just FYI.

	Erik