Does Solr data import handler support custom variables?

做~自己de王妃 提交于 2019-12-06 04:43:44

Short answer: Yes it does

Long answer:

At work I'm passing parameters in request (DataImportHandler: Accessing request parameters) with default values set in handler (solrconfig.xml)

To sum up:

You can do use something like that in data-config.xml

${dataimporter.request.your_variable}

With request:

/dataimport&command=delta-import&clean=false&commit=true&your_variable=123
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!