[英]Hacking Solr DataImportHandler full-import
I have been tasked with adding an "are you sure" confirmation to the DataImportHandler full import processes.我的任务是向 DataImportHandler 完整导入过程添加“你确定吗”确认。 Is there a way to accomplish this without editing the DataImportHandler source?
有没有办法在不编辑 DataImportHandler 源代码的情况下完成此操作?
In other words, http://solr.local:8080/solr/dataimport?command=full-import should ask for confirmation before doing a full import.换句话说, http://solr.local:8080/solr/dataimport?command=full-import应该在进行完全导入之前要求确认。
I'm running Solr 3.5.0 under Tomcat 7.0.26 under Sun JVM v. 1.6.0_16-b01.我在 Tomcat 7.0.26 下运行 Solr 3.5.0 Sun JVM v. 1.6.0_16-b01。 I'm not a developer, but have done some Java coding in the past.
我不是开发人员,但过去做过一些 Java 编码。
Best wishes, Myles最良好的祝愿,迈尔斯
Make people use another interface.让人们使用另一个界面。 Don't direct users to the
full-import
url;不要将用户引导至
full-import
url; create another HTML page where the user has to click 'OK' on a javascript alert before the full-import
command is invoked.创建另一个 HTML 页面,在调用
full-import
命令之前,用户必须在 javascript 警报上单击“确定”。 No hacking required.无需黑客攻击。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.