Dear All

Following on from:

http://lucene.472066.n3.nabble.com/Problem-with-Solr-and-Nutch-integration-tp2590334p2601915.html

I'm trying to add a new request handler to solr (the branch_3x checked
out from svn.  The request handler is as follows:

  <requestHandler name="/nutch" class="solr.SearchHandler" >
    <lst name="defaults">
       <str name="defType">dismax</str>
       <str name="echoParams">explicit</str>
       <float name="tie">0.01</float>
       <str name="qf">
          content^0.5 anchor^1.0 title^1.2
       </str>
       <str name="pf">
          content^0.5 anchor^1.5 title^1.2 site^1.5
       </str>
       <str name="fl">
          url
       </str>
       <str name="mm">
          2&lt;-1 5&lt;-2 6&lt;90%
       </str>
       <int name="ps">100</int>
       <bool hl="true"/>
       <str name="q.alt">*:*</str>
       <str name="hl.fl">title url content</str>
       <str name="f.title.hl.fragsize">0</str>
       <str name="f.title.hl.alternateField">title</str>
       <str name="f.url.hl.fragsize">0</str>
       <str name="f.url.hl.alternateField">url</str>
       <str name="f.content.hl.fragmenter">regex</str>
     </lst>
  </requestHandler>

This causes the solr-example (under Tomcat version 6) to fail on
startup and prevents me from accessing the solr admin screen.  The
same request handler works fine under the solr-example provided with
solr 1.4.1.  Through trial and error I have discovered the problem is
with the line:

<bool hl="true"/>

If this amended to read:

<bool hl="true">true</bool>

the solr-example starts fine.

Can anyone explain:

1.  Why the problem occurs (has something changed between 1.4.1 and 3x)?
2.  Is the amended statement (<bool hl="true">true</bool>) the same
(equivalent) to the original (<bool hl="true"/>)?

Many thanks

Regards

Paul

Reply via email to