lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "DataImportHandler" by MarkoBonaci
Date Fri, 10 Sep 2010 22:30:23 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "DataImportHandler" page has been changed by MarkoBonaci.
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=256&rev2=257

--------------------------------------------------

   * Author: Marko Bonaci, Zagreb, Croatia
   * Enables scheduling DIH delta and/or full imports
   * Proofs the concept, needs almost complete overhaul
-  * Successfully tested on Apache Tomcat v6 (should work on any container)
+  * Successfully tested on ''Apache Tomcat v6'' (should work on any servlet container)
   * Hasn't been committed to SVN (published only here)
  <<BR>>
  <!> Global TODO:
   * add comments to methods
   * try to use Solr's internal classes wherever possible
-  * parametrize the schedule interval in minutes (currently set to 10 minutes in Application``Listener's
contextInitialized method)
+  * parametrize the schedule interval in minutes (currently set to 10 minutes in ''Application``Listener's
contextInitialized'' method)
  <<BR>>
  == Prereqs ==
   {1} working DIH configuration in place <<BR>>
-  {2} dataimport.properties file in folder ''solr.home/conf/'' with mandatory params inside
(see bellow for the example of dataimport.properties) <<BR>>
+  {2} ''dataimport.properties'' file in folder ''solr.home/conf/'' with mandatory params
inside (see bellow for the example of ''dataimport.properties'') <<BR>>
-  {3} solr.home full path defined in OS System properties (Win: MyComputer > Properties
> Advanced > Environment > System variables > Add solr.solr.home with path to
solr folder)
+  {3} ''solr.home'' full path defined in OS System properties (Win: My Computer > Properties
> Advanced > Environment > System variables > Add ''solr.solr.home'' with full
path to solr folder)
  <<BR>>
  == SolrDataImportProperties ==
-  * uses [[http://download.oracle.com/javase/6/docs/api/java/util/Properties.html|java.util.Properties]]
to load settings from dataimport.properties
+  * uses [[http://download.oracle.com/javase/6/docs/api/java/util/Properties.html|java.util.Properties]]
to load settings from ''dataimport.properties''
  
  <!> TODO:
-  * currently uses system property for locating solr.home (use Solr's resource loader instead)
+  * currently uses system property for locating ''solr.home'' (use Solr's resource loader
instead)
  
  {{{
  package hr.mbo.solr.dataimport;
@@ -1111, +1111 @@

  <<BR>>
  == ApplicationListener ==
   * the class implements [[http://download.oracle.com/javaee/6/api/javax/servlet/ServletContextListener.html|javax.servlet.ServletContextListener]]
(listens to web app Initialize and Destroy events)
-  * uses HTTPPostScheduler, [[http://download.oracle.com/javase/6/docs/api/java/util/Timer.html|java.util.Timer]]
and context attribute map to facilitate periodic method invocation (scheduling)
+  * uses ''HTTPPostScheduler'', [[http://download.oracle.com/javase/6/docs/api/java/util/Timer.html|java.util.Timer]]
and context attribute map to facilitate periodic method invocation (scheduling)
   * Timer is essentially a facility for threads to schedule tasks for future execution in
a background thread.
  
  {{{
@@ -1177, +1177 @@

   * represents main DIHScheduler thread (run by Timer background thread)
   * gets DIH params and sets default values if empty
   * uses those params to assemble complete URL
-  * invokes URL using HTTP POST request method
+  * invokes URL using HTTP POST request
  
  <!> TODO:
-  * make it core-aware (to work with and without cores)
+  * make it ''core-aware'' (to work with and without cores)
   * add ''cancel'' functionality (to be able to completely disable DIHScheduler background
thread, without stopping the app or server)
   * explode ''params'' to specific parameters
   * currently logs events to server console -> use logger instead
@@ -1299, +1299 @@

  
  <<BR>>
  == dataimport.properties file example ==
-  * copy/paste ''dataimport scheduler properties'' part to your dataimport.properties file
(param explanations)
+  * copy/paste ''dataimport scheduler properties'' part to your ''dataimport.properties''
file (param explanations)
  
  {{{
  #Tue Jul 20 15:12:52 CEST 2010

Mime
View raw message