Yurish
Yurish

Reputation: 1309

SOLR - How to pass parameters to dataimport

How can i pass additional parameters to SOLR, while importing from database, using dataimport. Example:

I have sql query, smth like this:
Select * from documents where documentId > [myParameterHere]

Can i somehow insert value to [myParameterHere]?

Upvotes: 3

Views: 3258

Answers (2)

jassey
jassey

Reputation: 131

you can write this query:

Select * from documents where documentId > ${dataimporter.request.myParameterHere}

and post myParameterHere param in solr query url。

Upvotes: 6

Mauricio Scheffer
Mauricio Scheffer

Reputation: 99720

If you want to do a partial import, take a look at delta imports.

Upvotes: 5

Related Questions