You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/09 02:04:07 UTC

svn commit: r505110 - /lucene/solr/trunk/client/ruby/solrb/solr/solr/conf/solrconfig.xml

Author: ehatcher
Date: Thu Feb  8 17:04:06 2007
New Revision: 505110

URL: http://svn.apache.org/viewvc?view=rev&rev=505110
Log:
add dismax handler to config

Modified:
    lucene/solr/trunk/client/ruby/solrb/solr/solr/conf/solrconfig.xml

Modified: lucene/solr/trunk/client/ruby/solrb/solr/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solrb/solr/solr/conf/solrconfig.xml?view=diff&rev=505110&r1=505109&r2=505110
==============================================================================
--- lucene/solr/trunk/client/ruby/solrb/solr/solr/conf/solrconfig.xml (original)
+++ lucene/solr/trunk/client/ruby/solrb/solr/solr/conf/solrconfig.xml Thu Feb  8 17:04:06 2007
@@ -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
@@ -235,6 +235,30 @@
        <str name="version">2.1</str>
         -->
      </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