On Tue, Feb 2, 2010 at 8:36 PM, Jean-Michel Philippon-Nadeau < j...@jmpnadeau.ca> wrote:
> > I am running into an issue with my MySQL DataImportHandler. I've > followed the quick-start in order to write the necessary config and so > far everything seemed to work. > > However, I am missing some fields in my index. I've switched all fields > to stored="true" temporarily in my schema to troubleshoot the issue. I > only have 3 fields listed in search results while I should have 8. > > Could this be caused by ampersands or illegal entities in my database? > How can I see if DIH is importing correctly all my rows into the index? > > Follows is the warning I have in my catalina.log. > > Thank you very much, > > Jean-Michel > > === > > Feb 2, 2010 12:21:07 AM org.apache.solr.handler.dataimport.SolrWriter > upload > WARNING: Error creating document : > SolrInputDocument[{keywords=keywords(1.0)={Dolce}, name=name(1.0)={Dolce > & Gabbana D&G Neckties designer Tie for men 543}, > productID=productID(1.0)={220213}}] > java.lang.NullPointerException > at > org.apache.lucene.util.StringHelper.intern(StringHelper.java:36) > at org.apache.lucene.document.Field.<init>(Field.java:341) > at org.apache.lucene.document.Field.<init>(Field.java:305) > at > org.apache.solr.schema.FieldType.createField(FieldType.java:210) > That exception indicates that a field name itself was null. Can you post your data-config? -- Regards, Shalin Shekhar Mangar.