2007-07-30 13:20:18 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-11-09 18:13:58 -05:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2012-05-23 11:30:07 -04:00
|
|
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
2012-04-27 14:13:39 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2012-05-23 11:30:07 -04:00
|
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
2012-04-27 14:13:39 -04:00
|
|
|
version="2.5"
|
|
|
|
metadata-complete="true"
|
|
|
|
>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2012-05-23 11:30:07 -04:00
|
|
|
|
2006-04-18 12:08:24 -04:00
|
|
|
<!-- Uncomment if you are trying to use a Resin version before 3.0.19.
|
|
|
|
Their XML implementation isn't entirely compatible with Xerces.
|
|
|
|
Below are the implementations to use with Sun's JVM.
|
2006-01-26 00:37:29 -05:00
|
|
|
<system-property javax.xml.xpath.XPathFactory=
|
|
|
|
"com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl"/>
|
|
|
|
<system-property javax.xml.parsers.DocumentBuilderFactory=
|
|
|
|
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
|
|
|
|
<system-property javax.xml.parsers.SAXParserFactory=
|
|
|
|
"com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"/>
|
2006-03-02 17:02:18 -05:00
|
|
|
-->
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2008-05-30 20:54:08 -04:00
|
|
|
<!-- People who want to hardcode their "Solr Home" directly into the
|
|
|
|
WAR File can set the JNDI property here...
|
|
|
|
-->
|
|
|
|
<!--
|
|
|
|
<env-entry>
|
|
|
|
<env-entry-name>solr/home</env-entry-name>
|
|
|
|
<env-entry-value>/put/your/solr/home/here</env-entry-value>
|
|
|
|
<env-entry-type>java.lang.String</env-entry-type>
|
|
|
|
</env-entry>
|
|
|
|
-->
|
|
|
|
|
2007-01-29 15:33:21 -05:00
|
|
|
<!-- Any path (name) registered in solrconfig.xml will be sent to that filter -->
|
|
|
|
<filter>
|
|
|
|
<filter-name>SolrRequestFilter</filter-name>
|
|
|
|
<filter-class>org.apache.solr.servlet.SolrDispatchFilter</filter-class>
|
2008-03-24 20:42:36 -04:00
|
|
|
<!-- If you are wiring Solr into a larger web application which controls
|
|
|
|
the web context root, you will probably want to mount Solr under
|
|
|
|
a path prefix (app.war with /app/solr mounted into it, for example).
|
|
|
|
You will need to put this prefix in front of the SolrDispatchFilter
|
|
|
|
url-pattern mapping too (/solr/*), and also on any paths for
|
|
|
|
legacy Solr servlet mappings you may be using.
|
2012-03-06 12:04:19 -05:00
|
|
|
For the Admin UI to work properly in a path-prefixed configuration,
|
|
|
|
the admin folder containing the resources needs to be under the app context root
|
2008-03-24 21:40:00 -04:00
|
|
|
named to match the path-prefix. For example:
|
|
|
|
|
|
|
|
.war
|
|
|
|
xxx
|
2012-03-06 12:04:19 -05:00
|
|
|
js
|
|
|
|
main.js
|
2008-03-24 21:40:00 -04:00
|
|
|
-->
|
|
|
|
<!--
|
2007-02-17 22:33:13 -05:00
|
|
|
<init-param>
|
|
|
|
<param-name>path-prefix</param-name>
|
|
|
|
<param-value>/xxx</param-value>
|
|
|
|
</init-param>
|
|
|
|
-->
|
2007-01-29 15:33:21 -05:00
|
|
|
</filter>
|
2008-03-24 20:42:36 -04:00
|
|
|
|
2007-01-29 15:33:21 -05:00
|
|
|
<filter-mapping>
|
2008-03-24 20:42:36 -04:00
|
|
|
<!--
|
|
|
|
NOTE: When using multicore, /admin JSP URLs with a core specified
|
|
|
|
such as /solr/coreName/admin/stats.jsp get forwarded by a
|
|
|
|
RequestDispatcher to /solr/admin/stats.jsp with the specified core
|
|
|
|
put into request scope keyed as "org.apache.solr.SolrCore".
|
|
|
|
|
|
|
|
It is unnecessary, and potentially problematic, to have the SolrDispatchFilter
|
|
|
|
configured to also filter on forwards. Do not configure
|
|
|
|
this dispatcher as <dispatcher>FORWARD</dispatcher>.
|
|
|
|
-->
|
2007-01-29 15:33:21 -05:00
|
|
|
<filter-name>SolrRequestFilter</filter-name>
|
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
|
</filter-mapping>
|
2006-05-21 17:55:12 -04:00
|
|
|
|
2012-02-22 13:06:40 -05:00
|
|
|
<servlet>
|
|
|
|
<servlet-name>Zookeeper</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.ZookeeperInfoServlet</servlet-class>
|
|
|
|
</servlet>
|
2012-03-06 12:04:19 -05:00
|
|
|
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>LoadAdminUI</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.LoadAdminUiServlet</servlet-class>
|
|
|
|
</servlet>
|
2012-04-09 14:22:31 -04:00
|
|
|
|
|
|
|
<!-- Remove in Solr 5.0 -->
|
|
|
|
<!-- This sends SC_MOVED_PERMANENTLY (301) for resources that changed in 4.0 -->
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>RedirectOldAdminUI</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.RedirectServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>destination</param-name>
|
|
|
|
<param-value>${context}/#/</param-value>
|
|
|
|
</init-param>
|
|
|
|
</servlet>
|
|
|
|
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>RedirectOldZookeeper</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.RedirectServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>destination</param-name>
|
|
|
|
<param-value>${context}/zookeeper</param-value>
|
|
|
|
</init-param>
|
|
|
|
</servlet>
|
|
|
|
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>RedirectLogging</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.RedirectServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>destination</param-name>
|
|
|
|
<param-value>${context}/#/~logging</param-value>
|
|
|
|
</init-param>
|
|
|
|
</servlet>
|
2013-03-05 23:50:33 -05:00
|
|
|
|
|
|
|
<servlet>
|
2013-03-25 00:29:33 -04:00
|
|
|
<servlet-name>SolrRestApi</servlet-name>
|
2013-03-05 23:50:33 -05:00
|
|
|
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>org.restlet.application</param-name>
|
2013-03-25 00:29:33 -04:00
|
|
|
<param-value>org.apache.solr.rest.SolrRestApi</param-value>
|
2013-03-05 23:50:33 -05:00
|
|
|
</init-param>
|
|
|
|
</servlet>
|
2012-04-09 14:22:31 -04:00
|
|
|
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>RedirectOldAdminUI</servlet-name>
|
|
|
|
<url-pattern>/admin/</url-pattern>
|
|
|
|
</servlet-mapping>
|
2008-08-04 02:03:46 -04:00
|
|
|
<servlet-mapping>
|
2012-04-09 14:22:31 -04:00
|
|
|
<servlet-name>RedirectOldAdminUI</servlet-name>
|
|
|
|
<url-pattern>/admin</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>RedirectOldZookeeper</servlet-name>
|
|
|
|
<url-pattern>/zookeeper.jsp</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>RedirectLogging</servlet-name>
|
2012-03-06 12:04:19 -05:00
|
|
|
<url-pattern>/logging</url-pattern>
|
2008-08-04 02:03:46 -04:00
|
|
|
</servlet-mapping>
|
2012-04-09 14:22:31 -04:00
|
|
|
|
|
|
|
<!-- Servlet Mapping -->
|
2012-02-22 13:06:40 -05:00
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>Zookeeper</servlet-name>
|
|
|
|
<url-pattern>/zookeeper</url-pattern>
|
|
|
|
</servlet-mapping>
|
2012-03-06 12:04:19 -05:00
|
|
|
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>LoadAdminUI</servlet-name>
|
|
|
|
<url-pattern>/admin.html</url-pattern>
|
|
|
|
</servlet-mapping>
|
2013-03-05 23:50:33 -05:00
|
|
|
|
|
|
|
<servlet-mapping>
|
2013-03-25 00:29:33 -04:00
|
|
|
<servlet-name>SolrRestApi</servlet-name>
|
2013-03-05 23:50:33 -05:00
|
|
|
<url-pattern>/schema/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
2012-04-09 14:22:31 -04:00
|
|
|
|
2006-12-11 15:30:02 -05:00
|
|
|
<mime-mapping>
|
|
|
|
<extension>.xsl</extension>
|
|
|
|
<!-- per http://www.w3.org/TR/2006/PR-xslt20-20061121/ -->
|
|
|
|
<mime-type>application/xslt+xml</mime-type>
|
|
|
|
</mime-mapping>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2011-07-28 18:30:09 -04:00
|
|
|
<welcome-file-list>
|
2012-03-06 12:04:19 -05:00
|
|
|
<welcome-file>admin.html</welcome-file>
|
2011-07-28 18:30:09 -04:00
|
|
|
</welcome-file-list>
|
|
|
|
|
2006-01-26 00:37:29 -05:00
|
|
|
</web-app>
|