Thank you very much! I already know how to resolve my problem by your help! And i have registed in [email protected]... and I hope that someday i can join this Open Source community to do something!
2010-09-08 郭芸 发件人: Alexey Serba 发送时间: 2010-09-08 13:51:18 收件人: dev 抄送: 主题: Re: Re: About Solr DataImportHandler > 2.But there are some problems: > if the table is very big,solr will spend a long time to import and index,may > be one day and more.so once occurred network problems and others during this > time,maybe solr can not remember what documents had processed,and if we > continue data import ,we do not know where to start. You can _batch_ import your data using full import command by providing additional request parameter ( see http://wiki.apache.org/solr/DataImportHandler#Accessing_request_parameters ), i.e. query="SELECT * FROM my_table ORDER BY id LIMIT 1000000 OFFSET ${dataimporter.request.offset}" and then calling full-import command several times: 1) /dataimport?clean=true&offset=0 2) /dataimport?clean=false&offset=1000000 3) /dataimport?clean=false&offset=2000000 etc // Please use [email protected] mailing list for such questions. _dev_ is not appropriate place for this. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
