Why don't you use DataImportHandler?
We use DIH, we have a wget based bash script that is runned by cron
every about 2 minutes. DIH is called in delta-query mode.
The bash script waork in this way:
1) first call a wget on DIH status
2) analyze wget DIH status "/dataimport?command=status"
2.1) if status is **busy** do nothing and exit (beacuse DIH is already
running)
2.2) if status is **idle** do "/dataimport?command=delta-import&clean=false"
3) exit
On 24/06/11 15:20, Mohammad Shariq wrote:
First write a Script in Python ( or JAVA or PHP or anyLanguage) which reads
the data from database and index into Solr.
Now setup this script as cron-job to run automatically at certain interval.
--
Renato Eschini
Inera srl
Via Mazzini 138
56100 Pisa (PI)
Tel: (+39) (0)50 9911800
Fax: (+39) (0)50 9911830
Int: (+39) (0)50 9911819
Email: r.esch...@inera.it
Msn: r_esch...@hotmail.com
Skype: renato.eschini
WWW: http://www.inera.it
Rispetta l'ambiente - รจ veramente necessario stampare questa e-mail?
Please consider the environment - do you really need to print this e-mail?