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 Ruben Chadien <ru...@aspiro.com> on 2010/03/25 17:44:36 UTC

expungeDeletes on commit in Dataimport

Hi

I know this has been discussed before, but is there any way do expungeDeletes=true when the DataImportHandler does the commit.
I am using the deleteDocByQuery in a Transformer when doing a delta-import and as discussed before the documents are not deleted until restart.

Also, how do i know in a Transformer if its running a Delta or Full Import , i tries looking at Context. currentProcess() but that gives me "FULL_DUMP" when doing a delta import...?

Thanks!
Ruben Chadien

Re: expungeDeletes on commit in Dataimport

Posted by Lance Norskog <go...@gmail.com>.
Oops- solrconfig.xml does not include an option for autocommit to use
expungeDeletes. You will have to do a <commit> operation directly.

On Thu, Mar 25, 2010 at 8:18 PM, Lance Norskog <go...@gmail.com> wrote:
> You can do autoCommit in solrconfig.xml. This runs regular commits
> independently of the DataImportHandler.
>
> On Thu, Mar 25, 2010 at 9:44 AM, Ruben Chadien <ru...@aspiro.com> wrote:
>> Hi
>>
>> I know this has been discussed before, but is there any way do expungeDeletes=true when the DataImportHandler does the commit.
>> I am using the deleteDocByQuery in a Transformer when doing a delta-import and as discussed before the documents are not deleted until restart.
>>
>> Also, how do i know in a Transformer if its running a Delta or Full Import , i tries looking at Context. currentProcess() but that gives me "FULL_DUMP" when doing a delta import...?
>>
>> Thanks!
>> Ruben Chadien
>
>
>
> --
> Lance Norskog
> goksron@gmail.com
>



-- 
Lance Norskog
goksron@gmail.com

Re: expungeDeletes on commit in Dataimport

Posted by Lance Norskog <go...@gmail.com>.
You can do autoCommit in solrconfig.xml. This runs regular commits
independently of the DataImportHandler.

On Thu, Mar 25, 2010 at 9:44 AM, Ruben Chadien <ru...@aspiro.com> wrote:
> Hi
>
> I know this has been discussed before, but is there any way do expungeDeletes=true when the DataImportHandler does the commit.
> I am using the deleteDocByQuery in a Transformer when doing a delta-import and as discussed before the documents are not deleted until restart.
>
> Also, how do i know in a Transformer if its running a Delta or Full Import , i tries looking at Context. currentProcess() but that gives me "FULL_DUMP" when doing a delta import...?
>
> Thanks!
> Ruben Chadien



-- 
Lance Norskog
goksron@gmail.com

Re: expungeDeletes on commit in Dataimport

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
On Thu, Mar 25, 2010 at 10:14 PM, Ruben Chadien
<ru...@aspiro.com> wrote:
> Hi
>
> I know this has been discussed before, but is there any way do expungeDeletes=true when the DataImportHandler does the commit.
 expungeDeletes= true is not used does not mean that the doc does not
get deleted.deleteDocByQuery does not do a commit. if you wish to
commit you should do it explicitly
> I am using the deleteDocByQuery in a Transformer when doing a delta-import and as discussed before the documents are not deleted until restart.
>
> Also, how do i know in a Transformer if its running a Delta or Full Import , i tries looking at Context. currentProcess() but that gives me "FULL_DUMP" when doing a delta import...?
the variable ${dataimporter.request.command} tells you which command
is being run
>
> Thanks!
> Ruben Chadien



-- 
-----------------------------------------------------
Noble Paul | Systems Architect| AOL | http://aol.com