lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 于浩 <>
Subject Why I can't take an full-import with entity name?
Date Wed, 31 Aug 2011 01:13:53 GMT
I am using solr1.3,I updated solr index throgh solr delta import every two
hours. but the delta import is database connection wasteful.
So i want to use full-import with entity name instead of delta import.

my db-data-config.xml  file:
<entity name="article" pk="Article_ID"  query="select
Article_ID,Article_Title,Article_Abstract from Article_Detail">
                <field name="Article_ID" column="Article_ID" />
<entity name="delta_article" pk="Article_ID"  rootEngity="false"
 query="select Article_ID,Article_Title,Article_Abstract from Article_Detail
where Article_ID&gt;'${dataimporter.request.minID}' and Article_ID
                <field name="Article_ID" column="Article_ID" />

then I uses
but the solr will finish nearyly instant,and there is no any record
imported. but what the fact is there are many records meets the condtion of
maxID and minID.

the tomcat log:
信息: [db_article] webapp=/solr path=/dataimport
status=0 QTime=0
2011-8-29 19:00:03 org.apache.solr.handler.dataimport.DataImporter
信息: Starting Full Import
2011-8-29 19:00:03 org.apache.solr.handler.dataimport.SolrWriter
信息: Read
2011-8-29 19:00:03 org.apache.solr.handler.dataimport.SolrWriter
信息: Wrote last indexed time to
2011-8-29 19:00:03 org.apache.solr.handler.dataimport.DocBuilder commit
信息: Full Import completed successfully

some body who can help or some advices?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message