lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Lester <a...@petdance.com>
Subject Re: DataImportHandler in Solr 1.4 bug?
Date Thu, 15 Nov 2012 15:30:22 GMT

On Nov 15, 2012, at 8:02 AM, S├ębastien Lorber <lorber.sebastien@gmail.com> wrote:

>      <entity name="PARAM" query="SELECT key_name AS KEY, string_val AS
> VALUE FROM BATCH_JOB_PARAMS WHERE JOB_INSTANCE_ID =
> ${JOB_EXEC.JOB_INSTANCE_ID}">
>        <field column="VALUE" name="JOB_PARAM_${PARAM.KEY}" />
>      </entity>


I don't know where you're getting the ${JOB_EXEC.JOB_INSTANCE_ID}.  I believe that if you
want to get parameters passed in, it looks like this:

       WHERE batchid = ${dataimporter.request.batchid}

when I kick off the DIH like this:

       $url/dih?command=full-import&entity=titles&commit=true&batchid=47

At least that's how it works for me in 3.6 and 4.0.

xoa

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message