Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-910 -- Add a few utility commands to the DIH admin page such as full import, delta import, status, reload config

Shalin Shekhar Mangar80dea5625ea9
diff --git a/contrib/dataimporthandler/CHANGES.txt b/contrib/dataimporthandler/CHANGES.txt
index 798ce5ed983..c2cb3b12708 100644
--- a/contrib/dataimporthandler/CHANGES.txt
+++ b/contrib/dataimporthandler/CHANGES.txt
@@ -44,6 +44,9 @@ New Features
8. SOLR-812: Configurable JDBC settings in JdbcDataSource including optimized defaults for read only mode.
(David Smiley, Glen Newton, shalin)
+9. SOLR-910: Add a few utility commands to the DIH admin page such as full import, delta import, status, reload config.
+ (Ahmed Hammad via shalin)
+
Optimizations
----------------------
1. SOLR-846: Reduce memory consumption during delta import by removing keys when used
diff --git a/contrib/dataimporthandler/src/main/webapp/admin/debug.jsp b/contrib/dataimporthandler/src/main/webapp/admin/debug.jsp
index d748b65dda8..0475031d6cd 100644
--- a/contrib/dataimporthandler/src/main/webapp/admin/debug.jsp
+++ b/contrib/dataimporthandler/src/main/webapp/admin/debug.jsp
@@ -69,5 +69,28 @@
</tr>
</table>
</form>
+<form action="../dataimport" target="result" method="get">
+ <input type="hidden" name="clean" value="false">
+ <input type="hidden" name="commit" value="true">
+ <input class="stdbutton" type="submit" name="command" value="full-import">
+ <input class="stdbutton" type="submit" name="command" value="delta-import">
+ <input class="stdbutton" type="submit" name="command" value="status">
+ <input class="stdbutton" type="submit" name="command" value="reload-config">
+ <input class="stdbutton" type="submit" name="command" value="abort">
+</form>
+<form action="../select" target="result" method="get">
+ <input type="hidden" name="q" value="*:*">
+ <input type="hidden" name="start" value="0">
+ <input type="hidden" name="rows" value="0">
+ <input class="stdbutton" type="submit" value="Documents Count">
+</form>
+<form action="../dataimport" target="result" method="get">
+ <input type="hidden" name="verbose" value="true">
+ <input type="hidden" name="clean" value="true">
+ <input type="hidden" name="commit" value="true">
+ <input type="hidden" name="command" value="full-import">
+ <input class="stdbutton" type="submit" value="Full Import with Cleaning">
+</form>
+<a href="index.jsp" target="_parent">Return to Admin Page</a>
</body>
</html>