lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: DIH. behavior after a import. Log, delete table !?
Date Wed, 19 May 2010 15:47:15 GMT
> createn an Jar-file. this jar file delete my table.
> 
> but SOLR absolute dont want to start this JAR. i put a
> run.bat file into my
> folder where is my jar saved. this batch-file runs and
> delete the table, but
> when solr start this batch-file. it doesnt work. i dont
> know why. !?!?!?
> i test the batch-file in different wayy and it should be
> work... help ^^
> 
> windows xp for test ;-)

I don't know why but, it seems that we need to set dir other than '.'
Anyway I got it working in Windows in two ways:

1-)
<updateHandler class="solr.DirectUpdateHandler2">
 <listener event="postCommit" class="solr.RunExecutableListener"> 
      <str name="exe">java</str> 
      <str name="dir">solr/bin</str> 
	  <arr name="args"> <str>-jar</str> <str>junk.jar</str> </arr>
      <bool name="wait">true</bool> 
 </listener> 
</updateHandler>

2-) Giving full paths:

<updateHandler class="solr.DirectUpdateHandler2">
 <listener event="postCommit" class="solr.RunExecutableListener"> 
      <str name="exe">C:\test.bat</str> 
      <str name="dir">C:\</str> 
      <bool name="wait">true</bool> 
    </listener> 
</updateHandler>

It should work this time on windows.


      

Mime
View raw message