Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-3759: Various fixes to the example-DIH configs

Chris M. Hostettere7baf6476f95
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 176047b8aff..9031d1261d5 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -243,6 +243,7 @@ Bug Fixes
* SOLR-3645: /terms should default to distrib=false. (Nick Cotton, Mark Miller)
+* SOLR-3759: Various fixes to the example-DIH configs (Ahmet Arslan, hossman)
Other Changes
----------------------
diff --git a/solr/example/README.txt b/solr/example/README.txt
index 097bbe885db..06d342fa414 100644
--- a/solr/example/README.txt
+++ b/solr/example/README.txt
@@ -54,7 +54,7 @@ container). To run other example configurations, you can specify the
solr.solr.home system property when starting jetty...
java -Dsolr.solr.home=multicore -jar start.jar
- java -Dsolr.solr.home=example-DIH -jar start.jar
+ java -Dsolr.solr.home=example-DIH/solr -jar start.jar
* References to Jar Files Outside This Directory *
diff --git a/solr/example/example-DIH/solr/db/conf/admin-extra.menu-bottom.html b/solr/example/example-DIH/solr/db/conf/admin-extra.menu-bottom.html
new file mode 100644
index 00000000000..82404aed681
--- /dev/null
+++ b/solr/example/example-DIH/solr/db/conf/admin-extra.menu-bottom.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-bottom.html -->
diff --git a/solr/example/example-DIH/solr/db/conf/admin-extra.menu-top.html b/solr/example/example-DIH/solr/db/conf/admin-extra.menu-top.html
new file mode 100644
index 00000000000..980720575f0
--- /dev/null
+++ b/solr/example/example-DIH/solr/db/conf/admin-extra.menu-top.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-top.html -->
diff --git a/solr/example/example-DIH/solr/db/conf/solrconfig.xml b/solr/example/example-DIH/solr/db/conf/solrconfig.xml
index 2346ccbd666..aa8f5f0a8ca 100644
--- a/solr/example/example-DIH/solr/db/conf/solrconfig.xml
+++ b/solr/example/example-DIH/solr/db/conf/solrconfig.xml
@@ -414,6 +414,22 @@
-->
<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
+ <!-- ping/healthcheck -->
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
+ <lst name="invariants">
+ <str name="q">solrpingquery</str>
+ </lst>
+ <lst name="defaults">
+ <str name="echoParams">all</str>
+ </lst>
+ <!-- An optional feature of the PingRequestHandler is to configure the
+ handler with a "healthcheckFile" which can be used to enable/disable
+ the PingRequestHandler.
+ relative paths are resolved against the data dir
+ -->
+ <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
+ </requestHandler>
+
<!-- Echo the request contents back to the client -->
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
<lst name="defaults">
diff --git a/solr/example/example-DIH/solr/mail/conf/admin-extra.html b/solr/example/example-DIH/solr/mail/conf/admin-extra.html
new file mode 100644
index 00000000000..aa739da862c
--- /dev/null
+++ b/solr/example/example-DIH/solr/mail/conf/admin-extra.html
@@ -0,0 +1,31 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- The content of this page will be statically included into the top
+of the admin page. Uncomment this as an example to see there the content
+will show up.
+
+<hr>
+<i>This line will appear before the first table</i>
+<tr>
+<td colspan="2">
+This row will be appended to the end of the first table
+</td>
+</tr>
+<hr>
+
+-->
diff --git a/solr/example/example-DIH/solr/mail/conf/admin-extra.menu-bottom.html b/solr/example/example-DIH/solr/mail/conf/admin-extra.menu-bottom.html
new file mode 100644
index 00000000000..82404aed681
--- /dev/null
+++ b/solr/example/example-DIH/solr/mail/conf/admin-extra.menu-bottom.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-bottom.html -->
diff --git a/solr/example/example-DIH/solr/mail/conf/admin-extra.menu-top.html b/solr/example/example-DIH/solr/mail/conf/admin-extra.menu-top.html
new file mode 100644
index 00000000000..980720575f0
--- /dev/null
+++ b/solr/example/example-DIH/solr/mail/conf/admin-extra.menu-top.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-top.html -->
diff --git a/solr/example/example-DIH/solr/mail/conf/solrconfig.xml b/solr/example/example-DIH/solr/mail/conf/solrconfig.xml
index aa1df770aba..3e9feae65f8 100644
--- a/solr/example/example-DIH/solr/mail/conf/solrconfig.xml
+++ b/solr/example/example-DIH/solr/mail/conf/solrconfig.xml
@@ -26,6 +26,7 @@
-->
<luceneMatchVersion>LUCENE_50</luceneMatchVersion>
+ <lib dir="../../../../contrib/extraction/lib" />
<lib dir="../../../../contrib/dataimporthandler/lib/" regex=".*jar$" />
<lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />
@@ -572,6 +573,22 @@
</requestHandler>
-->
<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
+
+ <!-- ping/healthcheck -->
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
+ <lst name="invariants">
+ <str name="q">solrpingquery</str>
+ </lst>
+ <lst name="defaults">
+ <str name="echoParams">all</str>
+ </lst>
+ <!-- An optional feature of the PingRequestHandler is to configure the
+ handler with a "healthcheckFile" which can be used to enable/disable
+ the PingRequestHandler.
+ relative paths are resolved against the data dir
+ -->
+ <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
+ </requestHandler>
<!-- Echo the request contents back to the client -->
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
diff --git a/solr/example/example-DIH/solr/rss/conf/admin-extra.menu-bottom.html b/solr/example/example-DIH/solr/rss/conf/admin-extra.menu-bottom.html
new file mode 100644
index 00000000000..82404aed681
--- /dev/null
+++ b/solr/example/example-DIH/solr/rss/conf/admin-extra.menu-bottom.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-bottom.html -->
diff --git a/solr/example/example-DIH/solr/rss/conf/admin-extra.menu-top.html b/solr/example/example-DIH/solr/rss/conf/admin-extra.menu-top.html
new file mode 100644
index 00000000000..980720575f0
--- /dev/null
+++ b/solr/example/example-DIH/solr/rss/conf/admin-extra.menu-top.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-top.html -->
diff --git a/solr/example/example-DIH/solr/rss/conf/solrconfig.xml b/solr/example/example-DIH/solr/rss/conf/solrconfig.xml
index 0a3b4f71cea..99987ed1138 100644
--- a/solr/example/example-DIH/solr/rss/conf/solrconfig.xml
+++ b/solr/example/example-DIH/solr/rss/conf/solrconfig.xml
@@ -413,6 +413,22 @@
-->
<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
+ <!-- ping/healthcheck -->
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
+ <lst name="invariants">
+ <str name="q">solrpingquery</str>
+ </lst>
+ <lst name="defaults">
+ <str name="echoParams">all</str>
+ </lst>
+ <!-- An optional feature of the PingRequestHandler is to configure the
+ handler with a "healthcheckFile" which can be used to enable/disable
+ the PingRequestHandler.
+ relative paths are resolved against the data dir
+ -->
+ <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
+ </requestHandler>
+
<!-- Echo the request contents back to the client -->
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
<lst name="defaults">
diff --git a/solr/example/example-DIH/solr/solr/conf/admin-extra.menu-bottom.html b/solr/example/example-DIH/solr/solr/conf/admin-extra.menu-bottom.html
new file mode 100644
index 00000000000..82404aed681
--- /dev/null
+++ b/solr/example/example-DIH/solr/solr/conf/admin-extra.menu-bottom.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-bottom.html -->
diff --git a/solr/example/example-DIH/solr/solr/conf/admin-extra.menu-top.html b/solr/example/example-DIH/solr/solr/conf/admin-extra.menu-top.html
new file mode 100644
index 00000000000..980720575f0
--- /dev/null
+++ b/solr/example/example-DIH/solr/solr/conf/admin-extra.menu-top.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-top.html -->
diff --git a/solr/example/example-DIH/solr/solr/conf/solrconfig.xml b/solr/example/example-DIH/solr/solr/conf/solrconfig.xml
index 7131689f42e..e7876c557a8 100644
--- a/solr/example/example-DIH/solr/solr/conf/solrconfig.xml
+++ b/solr/example/example-DIH/solr/solr/conf/solrconfig.xml
@@ -412,6 +412,22 @@
-->
<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
+ <!-- ping/healthcheck -->
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
+ <lst name="invariants">
+ <str name="q">solrpingquery</str>
+ </lst>
+ <lst name="defaults">
+ <str name="echoParams">all</str>
+ </lst>
+ <!-- An optional feature of the PingRequestHandler is to configure the
+ handler with a "healthcheckFile" which can be used to enable/disable
+ the PingRequestHandler.
+ relative paths are resolved against the data dir
+ -->
+ <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
+ </requestHandler>
+
<!-- Echo the request contents back to the client -->
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
<lst name="defaults">
diff --git a/solr/example/example-DIH/solr/tika/conf/admin-extra.html b/solr/example/example-DIH/solr/tika/conf/admin-extra.html
new file mode 100644
index 00000000000..aa739da862c
--- /dev/null
+++ b/solr/example/example-DIH/solr/tika/conf/admin-extra.html
@@ -0,0 +1,31 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- The content of this page will be statically included into the top
+of the admin page. Uncomment this as an example to see there the content
+will show up.
+
+<hr>
+<i>This line will appear before the first table</i>
+<tr>
+<td colspan="2">
+This row will be appended to the end of the first table
+</td>
+</tr>
+<hr>
+
+-->
diff --git a/solr/example/example-DIH/solr/tika/conf/admin-extra.menu-bottom.html b/solr/example/example-DIH/solr/tika/conf/admin-extra.menu-bottom.html
new file mode 100644
index 00000000000..82404aed681
--- /dev/null
+++ b/solr/example/example-DIH/solr/tika/conf/admin-extra.menu-bottom.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-bottom.html -->
diff --git a/solr/example/example-DIH/solr/tika/conf/admin-extra.menu-top.html b/solr/example/example-DIH/solr/tika/conf/admin-extra.menu-top.html
new file mode 100644
index 00000000000..980720575f0
--- /dev/null
+++ b/solr/example/example-DIH/solr/tika/conf/admin-extra.menu-top.html
@@ -0,0 +1 @@
+<!-- admin-extra.menu-top.html -->
diff --git a/solr/example/example-DIH/solr/tika/conf/solrconfig.xml b/solr/example/example-DIH/solr/tika/conf/solrconfig.xml
index 6ec5b78e5d1..612cce1fb7b 100644
--- a/solr/example/example-DIH/solr/tika/conf/solrconfig.xml
+++ b/solr/example/example-DIH/solr/tika/conf/solrconfig.xml
@@ -308,6 +308,24 @@
-->
</requestHandler>
+ <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
+
+ <!-- ping/healthcheck -->
+ <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
+ <lst name="invariants">
+ <str name="q">solrpingquery</str>
+ </lst>
+ <lst name="defaults">
+ <str name="echoParams">all</str>
+ </lst>
+ <!-- An optional feature of the PingRequestHandler is to configure the
+ handler with a "healthcheckFile" which can be used to enable/disable
+ the PingRequestHandler.
+ relative paths are resolved against the data dir
+ -->
+ <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
+ </requestHandler>
+
<!-- config for the admin interface -->
<admin>
<defaultQuery>*:*</defaultQuery>