Skip to content

Apache Lucene open-source search software

SOLR-59, make echoParams=explicit the default in the example config

Bertrand Delacretaz7fdba9303748
diff --git a/CHANGES.txt b/CHANGES.txt
index 0b60b1a31fb..f65379b04e1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -154,9 +154,11 @@ Changes in runtime behavior
not all stored fields are needed from a document (klaas, SOLR-52)
10. Made admin JSPs return XML and transform them with new XSL stylesheets
(Otis Gospodnetic, SOLR-58)
-11. Request parameters are copied to a new <lst name="responseHeader"> element, which
- replaces the old <responseHeader>. Adding a version=2.1 parameter to the request produces
- the old format, for backwards compatibility (bdelacretaz and yonik, SOLR-59).
+11. If the "echoParams=explicit" request parameter is set, request parameters are copied
+ to the output. In an XML output, they appear in new <lst name="params"> list inside
+ the new <lst name="responseHeader"> element, which replaces the old <responseHeader>.
+ Adding a version=2.1 parameter to the request produces the old format, for backwards
+ compatibility (bdelacretaz and yonik, SOLR-59).
Optimizations
1. getDocListAndSet can now generate both a DocList and a DocSet from a
diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml
index 5df40297898..b41581b6d57 100755
--- a/example/solr/conf/solrconfig.xml
+++ b/example/solr/conf/solrconfig.xml
@@ -225,13 +225,15 @@
is not specified in the request.
-->
<requestHandler name="standard" class="solr.StandardRequestHandler">
- <!-- default values for query parameters may optionally be defined here
+ <!-- default values for query parameters -->
<lst name="defaults">
+ <str name="echoParams">explicit</str>
+ <!--
<int name="rows">10</int>
<str name="fl">*</str>
<str name="version">2.1</str>
- <lst>
- -->
+ -->
+ </lst>
</requestHandler>
<!-- DisMaxRequestHandler allows easy searching across multiple fields
@@ -240,6 +242,7 @@
-->
<requestHandler name="dismax" class="solr.DisMaxRequestHandler" >
<lst name="defaults">
+ <str name="echoParams">explicit</str>
<float name="tie">0.01</float>
<str name="qf">
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
@@ -265,6 +268,7 @@
-->
<requestHandler name="partitioned" class="solr.DisMaxRequestHandler" >
<lst name="defaults">
+ <str name="echoParams">explicit</str>
<str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>
<str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
<!-- This is an example of using Date Math to specify a constantly