From 25a185b7da920d81aba384e330f4e294e2c886ba Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Sun, 29 Apr 2007 20:47:23 +0000 Subject: [PATCH] SOLR-204: Make it possible for the request dispatcher to handle /select. This offers uniform error handling for /update and /select. This change will affect anyone who has added "enableRemoteStreaming" to their solrconfig.xml since solr1.1 Where you had: You now need: git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533558 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 6 +++++ example/solr/conf/solrconfig.xml | 14 +++++++--- src/test/test-files/solr/conf/solrconfig.xml | 4 ++- src/webapp/WEB-INF/web.xml | 4 --- .../solr/servlet/SolrDispatchFilter.java | 5 +++- .../solr/servlet/SolrRequestParsers.java | 27 +++++++------------ 6 files changed, 33 insertions(+), 27 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index b18f5d40859..5b58ab24cff 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -151,6 +151,12 @@ New Features 24. SOLR-212: Added a DirectSolrConnection class. This lets you access solr using the standard request/response formats, but does not require an HTTP connection. It is designed for embedded applications. (ryan) + +25. SOLR-204: The request dispatcher (added in SOLR-104) can handle + calls to /select. This offers uniform error handling for /update and + /select. To enable this behavior, you must add: + to your solrconfig.xml + See the example solrconfig.xml for details. (ryan) Changes in runtime behavior 1. Highlighting using DisMax will only pick up terms from the main diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml index c5eeb4f90da..1c78a66370f 100755 --- a/example/solr/conf/solrconfig.xml +++ b/example/solr/conf/solrconfig.xml @@ -231,9 +231,17 @@ - - - + + + + + + + - + + + solr diff --git a/src/webapp/WEB-INF/web.xml b/src/webapp/WEB-INF/web.xml index ffaa8ebcec6..ecf38e23463 100644 --- a/src/webapp/WEB-INF/web.xml +++ b/src/webapp/WEB-INF/web.xml @@ -35,10 +35,6 @@ SolrRequestFilter org.apache.solr.servlet.SolrDispatchFilter