Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize solr dataimporter timing Task

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "how to achieve solr dataimporter timing tasks", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "how to achieve solr dataimporter timing tasks"!

The downloaded package is placed under tomcat's solr app.

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

Modify dataimport.properties

# dataimport scheduler properties # # to sync or not to sync# 1-active Change anything else-inactivesyncEnabled=1# which cores to schedule# ina multi-core environment you can decide which cores you want syncronized# leave empty or comment it out if using single-core deploymentsyncCores=core # to your own # 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# URLparams [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

Constitutional judgment is required when a timestamp field is added to the database table for incremental updates. Other fields are also available.

Import the deltaQuery= of entity in the configuration file of the data. Where last_index_time > ${dataimporter.last_index_time} "

Add listener to the web.xml of the solr application

Org.apache.solr.handler.dataimport.scheduler.ApplicationListener so far, I believe you have a deeper understanding of "how to achieve solr dataimporter timing tasks", you might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report