Re: Error in identifying the primary key
Thanks a lot Nobel, I missed primary field definition in the schema.xml. I added the field definition and it is working now. 2009/3/20 Noble Paul നോബിള് नोब्ळ् > for all the fields mentioned in data-config.xml there should be a > counterpart in schema.xml > > anyway that is relaxed in the latest nightly > > > > On Fri, Mar 20, 2009 at 6:26 PM, radha c wrote: > > Hi, > > > > I am new to Solr. I am trying to index SQL table rows. > > I am getting the below error. Can anyone help me in resolving this issue. > > > > Mar 20, 2009 6:03:38 PM org.apache.solr.handler.dataimport.DataImporter > > verifyWithSchema > > INFO: id is a required field in SolrSchema . But not found in DataConfig > > Mar 20, 2009 6:03:38 PM > org.apache.solr.handler.dataimport.DataImportHandler > > inform > > SEVERE: Exception while loading DataImporter > > org.apache.solr.handler.dataimport.DataImportHandlerException: There are > > errors in the Schema > > The field :age present in DataConfig does not have a counterpart in Solr > > Schema > > The field :firstname present in DataConfig does not have a counterpart in > > Solr Schema > > The field :lastName present in DataConfig does not have a counterpart in > > Solr Schema > > > >at > > > org.apache.solr.handler.dataimport.DataImporter.(DataImporter.java:108) > >at > > > org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:95) > >at > > > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:388) > >at org.apache.solr.core.SolrCore.(SolrCore.java:571) > >at > > > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:121) > >at > > > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) > >at > > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221) > >at > > > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) > >at > > > org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78) > >at > > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) > >at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) > >at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) > >at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > >at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > >at > > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) > >at > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) > >at > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) > >at > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) > >at > > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > >at > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) > >at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) > >at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > >at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > >at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > >at > > org.apache.catalina.core.StandardService.start(StandardService.java:448) > >at > > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > >at org.apache.catalina.startup.Catalina.start(Catalina.java:552) > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >at java.lang.reflect.Method.invoke(Method.java:585) > >at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) > > Mar 20, 2009 6:03:38 PM org.apache.solr.servlet.SolrDispatchFilter init > > SEVERE: Could not start SOLR. Check solr/home property > > org.apache.solr.common.SolrException: FATAL: Could not create importer. > > DataImporter config invalid > >at > > > org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:103) > >at > > > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:388) > >at org.apache.solr.core.SolrCore.(SolrCore.java:571) > >at > > > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:121) > >at > > > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) > > > > Thanks > > > > > > -- > --Noble Paul >
could not search the indexed table data
Hi, I am just in learning face. I indexed a sql test table using dataimport. But I want to search those index by keyword. I tried to search like http://localhost:8080/solr/select/?q=Peter. But I got zero respone. Can anyone help me please why is this? Thanks in advance.
Re: could not search the indexed table data
it is hard to say the reason. do you have the field containing "Peter" in the default search field? what is the type of the field? On Sun, Mar 22, 2009 at 9:16 PM, radha c wrote: > Hi, > I am just in learning face. I indexed a sql test table using dataimport. > But I want to search those index by keyword. I tried to search like > http://localhost:8080/solr/select/?q=Peter. But I got zero respone. > Can anyone help me please why is this? > Thanks in advance. > -- --Noble Paul
Re: could not search the indexed table data
Thanks for your reply, Yes, I have tabel persons and "Peter" value in column firstname . and here is my data-config.xml and my schema.xml person_id It is indexed properly. But I am not getting any result. Do I need to do explicit commit? Or Am I quering correctly http://localhost:8080/solr/select/?q=Peter ? 2009/3/22 Noble Paul നോബിള് नोब्ळ् > it is hard to say the reason. > do you have the field containing "Peter" in the default search field? > what is the type of the field? > > On Sun, Mar 22, 2009 at 9:16 PM, radha c wrote: > > Hi, > > I am just in learning face. I indexed a sql test table using dataimport. > > But I want to search those index by keyword. I tried to search like > > http://localhost:8080/solr/select/?q=Peter. But I got zero respone. > > Can anyone help me please why is this? > > Thanks in advance. > > > > > > -- > --Noble Paul >
Re: could not search the indexed table data
there is a typo in the column value the schema does not say whether fname goes into a default search field On Sun, Mar 22, 2009 at 11:10 PM, radha c wrote: > Thanks for your reply, > Yes, I have tabel persons and "Peter" value in column firstname . and here > is my data-config.xml > > > > > > > > > > and my schema.xml > > > positionIncrementGap="100"/> > > > > multivalued="false" required="true"/> > multivalued="false"/> > > person_id > > > It is indexed properly. But I am not getting any result. Do I need to do > explicit commit? > Or Am I quering correctly http://localhost:8080/solr/select/?q=Peter ? > > > > 2009/3/22 Noble Paul നോബിള് नोब्ळ् > >> it is hard to say the reason. >> do you have the field containing "Peter" in the default search field? >> what is the type of the field? >> >> On Sun, Mar 22, 2009 at 9:16 PM, radha c wrote: >> > Hi, >> > I am just in learning face. I indexed a sql test table using dataimport. >> > But I want to search those index by keyword. I tried to search like >> > http://localhost:8080/solr/select/?q=Peter. But I got zero respone. >> > Can anyone help me please why is this? >> > Thanks in advance. >> > >> >> >> >> -- >> --Noble Paul >> > -- --Noble Paul
Re: could not search the indexed table data
Oops.. Thanks a lot. I got a bit tired :-) Thanks 2009/3/22 Noble Paul നോബിള് नोब्ळ् > there is a typo in the column value > > > > the schema does not say whether fname goes into a default search field > > > On Sun, Mar 22, 2009 at 11:10 PM, radha c wrote: > > Thanks for your reply, > > Yes, I have tabel persons and "Peter" value in column firstname . and > here > > is my data-config.xml > > > > > > > > > > > > > > > > > > > > and my schema.xml > > > > > >> positionIncrementGap="100"/> > > > > > > > >> multivalued="false" required="true"/> > >> multivalued="false"/> > > > > person_id > > > > > > It is indexed properly. But I am not getting any result. Do I need to do > > explicit commit? > > Or Am I quering correctly http://localhost:8080/solr/select/?q=Peter ? > > > > > > > > 2009/3/22 Noble Paul നോബിള് नोब्ळ् > > > >> it is hard to say the reason. > >> do you have the field containing "Peter" in the default search field? > >> what is the type of the field? > >> > >> On Sun, Mar 22, 2009 at 9:16 PM, radha c wrote: > >> > Hi, > >> > I am just in learning face. I indexed a sql test table using > dataimport. > >> > But I want to search those index by keyword. I tried to search like > >> > http://localhost:8080/solr/select/?q=Peter. But I got zero respone. > >> > Can anyone help me please why is this? > >> > Thanks in advance. > >> > > >> > >> > >> > >> -- > >> --Noble Paul > >> > > > > > > -- > --Noble Paul >
Do I need maven build for solrj client?
Hi, I am trying to write an solrj client. Do I need to do maven builb for that. Is there any beginners tutorial with the basic framwork for solrj. Thanks in advance.
Re: Do I need maven build for solrj client?
On Sun, Mar 22, 2009 at 11:54 PM, radha c wrote: > Hi, > I am trying to write an solrj client. Do I need to do maven builb for that. > Is there any beginners tutorial with the basic framwork for solrj. Thanks > in advance. > If you are using maven then Solrj is already present in the maven repositories. If you are not using maven, then just add the jar in your project as you would normally do with any other jar. There's no tutorial I think but there is a wiki page http://wiki.apache.org/solr/Solrj -- Regards, Shalin Shekhar Mangar.
Re: Problem for replication : segment optimized automaticly
Do you have any idea ??? :( cheer, sunnyfr wrote: > > Hi everybody ... still me :) > hoo happy day :) > > Just, I dont get where I miss something, I will try to be clear. > > this is my index folder (and we can notice the evolution according to the > delta import every 30mn) : > > r...@search-01:/data/solr# ls video/data/index/ > _2bel.fdt _2bel.fnm _2bel.nrm _2bel.tii _2bel.tvd _2bel.tvx > _2bem.fdt _2bem.fnm _2bem.nrm _2bem.tii _2bem.tvd _2bem.tvx > _2ben.frq _2ben.prx _2ben.tis _2beo.fdx segments.gen > _2bel.fdx _2bel.frq _2bel.prx _2bel.tis _2bel.tvf _2bel_1.del > _2bem.fdx _2bem.frq _2bem.prx _2bem.tis _2bem.tvf _2ben.fnm > _2ben.nrm _2ben.tii _2beo.fdt _2beo.fnm segments_230x > r...@search-01:/data/solr# ls video/data/index/ > _2bel.fdt _2bel.frq _2bel.tii _2bel.tvf_2bem.fdt _2bem.frq > _2bem.tii _2bem.tvf _2ben.frq _2ben.tii _2beo.fdx _2beo.nrm > _2beo.tis _2beo.tvx > _2bel.fdx _2bel.nrm _2bel.tis _2bel.tvx_2bem.fdx _2bem.nrm > _2bem.tis _2bem.tvx _2ben.nrm _2ben.tis _2beo.fnm _2beo.prx > _2beo.tvd segments.gen > _2bel.fnm _2bel.prx _2bel.tvd _2bel_1.del _2bem.fnm _2bem.prx > _2bem.tvd _2ben.fnm _2ben.prx _2beo.fdt _2beo.frq _2beo.tii > _2beo.tvf segments_230x > r...@search-01:/data/solr# ls video/data/index/ > _2beo.fdt _2beo.fdx _2beo.fnm _2beo.frq _2beo.nrm _2beo.prx > _2beo.tii _2beo.tis _2beo.tvd _2beo.tvf _2beo.tvx segments.gen > segments_230y > > So as you can notice my segments increased which is perfect for my > replication (faster to get JUST last segments) > But like you can see in my last ls my segment has been optimized. > > Like I can notice in my log : > Mar 19 15:42:37 search-01 jsvc.exec[23255]: Mar 19, 2009 3:42:37 PM > org.apache.solr.handler.dataimport.DocBuilder commit INFO: Full Import > completed successfully without optimization > Mar 19 15:42:37 search-01 jsvc.exec[23255]: Mar 19, 2009 3:42:37 PM > org.apache.solr.update.DirectUpdateHandler2 commit INFO: start > commit(optimize=true,waitFlush=false,waitSearcher=true) > > But I didn't fire any optimize, my delta-import is fired like : > /solr/video/dataimport?command=delta-import&optimize=false > > Solrconfig.xml : autocommit turnd off > > > > > Maybe it comes from lucene parameters? > > false > 50 > 50 > > > 2147483647 > 1 > > Thanks a lot for your help, > Sunny > > > > -- View this message in context: http://www.nabble.com/Problem-for-replication-%3A-segment-optimized-automaticly-tp22601442p22649412.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem for replication : segment optimized automaticly
Lucene will automatically merge segments when they exceed the mergeFactor. This may be one reason but I'm not sure. I checked DataImportHandler's code again. It won't optimize if optimize=false is specified. On Mon, Mar 23, 2009 at 12:43 AM, sunnyfr wrote: > > Do you have any idea ??? > :( > > cheer, > > > sunnyfr wrote: > > > > Hi everybody ... still me :) > > hoo happy day :) > > > > Just, I dont get where I miss something, I will try to be clear. > > > > this is my index folder (and we can notice the evolution according to the > > delta import every 30mn) : > > > > r...@search-01:/data/solr# ls video/data/index/ > > _2bel.fdt _2bel.fnm _2bel.nrm _2bel.tii _2bel.tvd _2bel.tvx > > _2bem.fdt _2bem.fnm _2bem.nrm _2bem.tii _2bem.tvd _2bem.tvx > > _2ben.frq _2ben.prx _2ben.tis _2beo.fdx segments.gen > > _2bel.fdx _2bel.frq _2bel.prx _2bel.tis _2bel.tvf _2bel_1.del > > _2bem.fdx _2bem.frq _2bem.prx _2bem.tis _2bem.tvf _2ben.fnm > > _2ben.nrm _2ben.tii _2beo.fdt _2beo.fnm segments_230x > > r...@search-01:/data/solr# ls video/data/index/ > > _2bel.fdt _2bel.frq _2bel.tii _2bel.tvf_2bem.fdt _2bem.frq > > _2bem.tii _2bem.tvf _2ben.frq _2ben.tii _2beo.fdx _2beo.nrm > > _2beo.tis _2beo.tvx > > _2bel.fdx _2bel.nrm _2bel.tis _2bel.tvx_2bem.fdx _2bem.nrm > > _2bem.tis _2bem.tvx _2ben.nrm _2ben.tis _2beo.fnm _2beo.prx > > _2beo.tvd segments.gen > > _2bel.fnm _2bel.prx _2bel.tvd _2bel_1.del _2bem.fnm _2bem.prx > > _2bem.tvd _2ben.fnm _2ben.prx _2beo.fdt _2beo.frq _2beo.tii > > _2beo.tvf segments_230x > > r...@search-01:/data/solr# ls video/data/index/ > > _2beo.fdt _2beo.fdx _2beo.fnm _2beo.frq _2beo.nrm _2beo.prx > > _2beo.tii _2beo.tis _2beo.tvd _2beo.tvf _2beo.tvx segments.gen > > segments_230y > > > > So as you can notice my segments increased which is perfect for my > > replication (faster to get JUST last segments) > > But like you can see in my last ls my segment has been optimized. > > > > Like I can notice in my log : > > Mar 19 15:42:37 search-01 jsvc.exec[23255]: Mar 19, 2009 3:42:37 PM > > org.apache.solr.handler.dataimport.DocBuilder commit INFO: Full Import > > completed successfully without optimization > > Mar 19 15:42:37 search-01 jsvc.exec[23255]: Mar 19, 2009 3:42:37 PM > > org.apache.solr.update.DirectUpdateHandler2 commit INFO: start > > commit(optimize=true,waitFlush=false,waitSearcher=true) > > > > But I didn't fire any optimize, my delta-import is fired like : > > /solr/video/dataimport?command=delta-import&optimize=false > > > > Solrconfig.xml : autocommit turnd off > > > > > > > > > > Maybe it comes from lucene parameters? > > > > false > > 50 > > 50 > > > > > > 2147483647 > > 1 > > > > Thanks a lot for your help, > > Sunny > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/Problem-for-replication-%3A-segment-optimized-automaticly-tp22601442p22649412.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.
directly communicate with solr with java
Hi, I got solr setup working smoothly with tomcat and all. In general the application I use solr for is php driven but I somehow want to remove this extra roundtrip to php that is made when I call solr from javascript. So bottom line I'd like to change this: JS -> tiny php(apache processed etc) -> solr (under tomcat) to this JS -> tiny java app(under tomcat) -> solr (under tomcat) Idea is I need some intermediate app that will process the request params in a way it makes sense for my application. And I think if going to java application it will be way faster than php(apache) and then back to java(tomcat). Since I am noob in Java would like to know if there are some tutorials or something how I can achieve all this. Also would like to hear your opinion if this will really speed things up for me. Cheers
Re: Field tokenizer question
Hey it works. Can you please tell me the reason?? Thanks, Ashish Koji Sekiguchi-2 wrote: > > Ashish P wrote: >> I have created a field, >> >> >> >> >> >> >> > Set class="solr.TextField" instead of class="solr.StrField" in your > fieldType definition. > Then reindex and commit. > > Koji > > > -- View this message in context: http://www.nabble.com/Field-tokenizer-question-tp22594575p22653356.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem for replication : segment optimized automaticly
the easiest way to find out what DIH did is to hit it's status command. It will give you a brief description of what all it did during last import On Mon, Mar 23, 2009 at 12:59 AM, Shalin Shekhar Mangar wrote: > Lucene will automatically merge segments when they exceed the mergeFactor. > This may be one reason but I'm not sure. > > I checked DataImportHandler's code again. It won't optimize if > optimize=false is specified. > > On Mon, Mar 23, 2009 at 12:43 AM, sunnyfr wrote: > >> >> Do you have any idea ??? >> :( >> >> cheer, >> >> >> sunnyfr wrote: >> > >> > Hi everybody ... still me :) >> > hoo happy day :) >> > >> > Just, I dont get where I miss something, I will try to be clear. >> > >> > this is my index folder (and we can notice the evolution according to the >> > delta import every 30mn) : >> > >> > r...@search-01:/data/solr# ls video/data/index/ >> > _2bel.fdt _2bel.fnm _2bel.nrm _2bel.tii _2bel.tvd _2bel.tvx >> > _2bem.fdt _2bem.fnm _2bem.nrm _2bem.tii _2bem.tvd _2bem.tvx >> > _2ben.frq _2ben.prx _2ben.tis _2beo.fdx segments.gen >> > _2bel.fdx _2bel.frq _2bel.prx _2bel.tis _2bel.tvf _2bel_1.del >> > _2bem.fdx _2bem.frq _2bem.prx _2bem.tis _2bem.tvf _2ben.fnm >> > _2ben.nrm _2ben.tii _2beo.fdt _2beo.fnm segments_230x >> > r...@search-01:/data/solr# ls video/data/index/ >> > _2bel.fdt _2bel.frq _2bel.tii _2bel.tvf _2bem.fdt _2bem.frq >> > _2bem.tii _2bem.tvf _2ben.frq _2ben.tii _2beo.fdx _2beo.nrm >> > _2beo.tis _2beo.tvx >> > _2bel.fdx _2bel.nrm _2bel.tis _2bel.tvx _2bem.fdx _2bem.nrm >> > _2bem.tis _2bem.tvx _2ben.nrm _2ben.tis _2beo.fnm _2beo.prx >> > _2beo.tvd segments.gen >> > _2bel.fnm _2bel.prx _2bel.tvd _2bel_1.del _2bem.fnm _2bem.prx >> > _2bem.tvd _2ben.fnm _2ben.prx _2beo.fdt _2beo.frq _2beo.tii >> > _2beo.tvf segments_230x >> > r...@search-01:/data/solr# ls video/data/index/ >> > _2beo.fdt _2beo.fdx _2beo.fnm _2beo.frq _2beo.nrm _2beo.prx >> > _2beo.tii _2beo.tis _2beo.tvd _2beo.tvf _2beo.tvx segments.gen >> > segments_230y >> > >> > So as you can notice my segments increased which is perfect for my >> > replication (faster to get JUST last segments) >> > But like you can see in my last ls my segment has been optimized. >> > >> > Like I can notice in my log : >> > Mar 19 15:42:37 search-01 jsvc.exec[23255]: Mar 19, 2009 3:42:37 PM >> > org.apache.solr.handler.dataimport.DocBuilder commit INFO: Full Import >> > completed successfully without optimization >> > Mar 19 15:42:37 search-01 jsvc.exec[23255]: Mar 19, 2009 3:42:37 PM >> > org.apache.solr.update.DirectUpdateHandler2 commit INFO: start >> > commit(optimize=true,waitFlush=false,waitSearcher=true) >> > >> > But I didn't fire any optimize, my delta-import is fired like : >> > /solr/video/dataimport?command=delta-import&optimize=false >> > >> > Solrconfig.xml : autocommit turnd off >> > >> > >> > >> > >> > Maybe it comes from lucene parameters? >> > >> > false >> > 50 >> > 50 >> > >> > >> > 2147483647 >> > 1 >> > >> > Thanks a lot for your help, >> > Sunny >> > >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Problem-for-replication-%3A-segment-optimized-automaticly-tp22601442p22649412.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > -- > Regards, > Shalin Shekhar Mangar. > -- --Noble Paul
Error when creating document
Hi, I am trying to index the rows using dataimporthandler full import. But I am getting the following error, please suggest me what went wrong? Thanks in advance. INFO: Time taken for getConnection(): 406 Mar 23, 2009 11:55:52 AM org.apache.solr.handler.dataimport.SolrWriter upload WARNING: Error creating document : SolrInputDocument[{}] org.apache.solr.common.SolrException: Document [null] missing required field: person_id at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:292) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProc essorFactory.java:59) at org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:67) at org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHand ler.java:263) at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java: 377) at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:225 ) at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:167) at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.ja va:323) at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:381 ) at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:362) Mar 23, 2009 11:55:52 AM org.apache.solr.handler.dataimport.SolrWriter upload WARNING: Error creating document : SolrInputDocument[{}] org.apache.solr.common.SolrException: Document [null] missing required field: person_id at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:292) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProc essorFactory.java:59) at org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:67) at org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHand ler.java:263) at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java: 377) at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:225 )
Re: Error when creating document
the query does not return the required fields. run the query outside of DIH and debug --NOble 2009/3/23 Radha C. : > Hi, > > I am trying to index the rows using dataimporthandler full import. But I am > getting the following error, please suggest me what went wrong? > Thanks in advance. > > INFO: Time taken for getConnection(): 406 > Mar 23, 2009 11:55:52 AM org.apache.solr.handler.dataimport.SolrWriter > upload > WARNING: Error creating document : SolrInputDocument[{}] > org.apache.solr.common.SolrException: Document [null] missing required > field: person_id > at > org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:292) > at > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProc > essorFactory.java:59) > at > org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:67) > at > org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHand > ler.java:263) > at > org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java: > 377) > at > org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:225 > ) > at > org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:167) > at > org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.ja > va:323) > at > org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:381 > ) > at > org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:362) > Mar 23, 2009 11:55:52 AM org.apache.solr.handler.dataimport.SolrWriter > upload > WARNING: Error creating document : SolrInputDocument[{}] > org.apache.solr.common.SolrException: Document [null] missing required > field: person_id > at > org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:292) > at > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProc > essorFactory.java:59) > at > org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:67) > at > org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHand > ler.java:263) > at > org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java: > 377) > at > org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:225 > ) > > > -- --Noble Paul