Skip to content

Apache Lucene open-source search software

add dismax handler to config

Erik Hatchere61bc593d068
diff --git a/client/ruby/solrb/solr/solr/conf/solrconfig.xml b/client/ruby/solrb/solr/solr/conf/solrconfig.xml
index ac3416b4c4e..ac04c24a9d9 100755
--- a/client/ruby/solrb/solr/solr/conf/solrconfig.xml
+++ b/client/ruby/solrb/solr/solr/conf/solrconfig.xml
@@ -116,9 +116,9 @@
-->
<filterCache
class="solr.LRUCache"
- size="512"
- initialSize="512"
- autowarmCount="256"/>
+ size="200000"
+ initialSize="100000"
+ autowarmCount="50000"/>
<!-- queryResultCache caches results of searches - ordered lists of
document ids (DocList) based on a query, a sort, and the range
@@ -236,6 +236,30 @@
-->
</lst>
</requestHandler>
+
+ <!-- DisMaxRequestHandler allows easy searching across multiple fields
+ for simple user-entered phrases.
+ see http://wiki.apache.org/solr/DisMaxRequestHandler
+ -->
+ <requestHandler name="dismax" class="solr.DisMaxRequestHandler" >
+ <lst name="defaults">
+ <str name="echoParams">explicit</str>
+ <float name="tie">0.01</float>
+ <str name="qf">
+ text^1.9
+ </str>
+ <str name="pf">
+ text^1.9
+ </str>
+ <str name="fl">
+ id, text
+ </str>
+ <str name="mm">
+ 2&lt;-1 5&lt;-2 6&lt;90%
+ </str>
+ <int name="ps">100</int>
+ </lst>
+ </requestHandler>
<!-- queryResponseWriter plugins... query responses will be written using the
writer specified by the 'wt' request parameter matching the name of a registered