You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/07/12 23:31:32 UTC
[lucene-solr] 02/02: #103 Quick attempt to enable qos filter
outside tests.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 937721438a1e5d8e447681f5b7fc2b9d682814af
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sun Jul 12 18:31:19 2020 -0500
#103 Quick attempt to enable qos filter outside tests.
---
solr/webapp/web/WEB-INF/web.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/solr/webapp/web/WEB-INF/web.xml b/solr/webapp/web/WEB-INF/web.xml
index 53ab57a..64acbe0 100644
--- a/solr/webapp/web/WEB-INF/web.xml
+++ b/solr/webapp/web/WEB-INF/web.xml
@@ -22,6 +22,11 @@
metadata-complete="true"
>
+ <filter>
+ <filter-name>SolrQosFilter</filter-name>
+ <filter-class>org.apache.solr.servlet.SolrQoSFilter</filter-class>
+ </filter>
+
<!-- Any path (name) registered in solrconfig.xml will be sent to that filter -->
<filter>
<filter-name>SolrRequestFilter</filter-name>
@@ -38,6 +43,12 @@
</filter>
<filter-mapping>
+ <filter-name>SolrQosFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>ASYNC</dispatcher>
+ </filter-mapping>
+ <filter-mapping>
<filter-name>SolrRequestFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>