You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by nvmai <di...@yahoo.com> on 2015/02/04 08:01:04 UTC
Re: how to index data in solr form database automatically
I use crontab
* */1 * * * wget http://blog.nhipvang.com
:8983/solr/imuzik/dataimport?command=full-import&clean=false
-----
mẹo làm đẹp
--
View this message in context: http://lucene.472066.n3.nabble.com/how-to-index-data-in-solr-form-database-automatically-tp3102893p4183792.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to index data in solr form database automatically
Posted by Shawn Heisey <ap...@elyograg.org>.
On 2/4/2015 12:01 AM, nvmai wrote:
> I use crontab
> * */1 * * * wget http://blog.nhipvang.com
> :8983/solr/imuzik/dataimport?command=full-import&clean=false
That will attempt to start a full-import once a minute. Requests sent
while an import is already underway will fail, but this basically means
that your solr instance will *always* be doing a full import.
That's probably not what you want.
A time specification of "0 * * * *" would do the import once an hour.
Thanks,
Shawn