SOLR usage Records-SOLR dataimporter timed tasks

Source: Internet
Author: User
Tags solr

  1. The downloaded package is put into Tomcat's SOLR app.

  2. The dataimport.properties file in the package is placed under the server/solr/conf directory. (conf directory needs to be created by itself)

  3. Modify dataimport.properties

  4. ##################################################                                                  ##       dataimport scheduler properties          ##                                                 ######## ###########################################  to sync or not to sync#   1 - active; anything else - inactivesyncEnabled=1#  which  cores to schedule#  in a multi-core environment you can decide which  Cores you want syncronized#  leave empty or comment it out  if using single-core deploymentsyncCores=core  #改成自己的 #  solr server  name or ip address#  [defaults to localhost if empty]server =localhost#  solr server port#  [defaults to 80 if empty] port=8080#  application name/context#  [defaults to current  Servletcontextlistener ' s context  (APP)  name]webapp=solr#  url params [ Mandatory]#  remainder of urlparams=/core/dataimport?command=delta-import&clean=false &commit=true#  schedule interval#  number of minutes between  Two runs#  [defaults to 30 if empty]interval=10 
  5. It is necessary to enter the Constitution when the database table plus a timestamp field is used for incremental updates. Other fields are also available.


  6. Import data in the configuration file of entity deltaquery= "... where Last_index_time > ${dataimporter.last_index_time} "


SOLR usage Records-SOLR dataimporter timed tasks

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.