On 8/4/2015 4:57 PM, sergeyk wrote:
> I's like to use SolrEntityProcessor for import some documents from one solr
> cloud to another solr cloud.
> The date range is dynamic and can change.
> Is there a way to pass, say solr/core/data-import?....&fromDate=<some
> date>&toDate=<some date>

You can use syntax like ${dih.request.fromDate} in your dataimport
config to substitute parameters sent on the URL.  Here is an example
from my own dih-config.xml file:

      query="
        SELECT * FROM ${dih.request.dataView}
        WHERE (
          (
            did &gt; ${dih.request.minDid}
            AND did &lt;= ${dih.request.maxDid}
          )
          ${dih.request.extraWhere}
        ) AND (crc32(did) % ${dih.request.numShards})
          IN (${dih.request.modVal})
        "

Thanks,
Shawn

Reply via email to