lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud.Gaudinat@healthonnet.org" <arnaud.gaudi...@healthonnet.org>
Subject mandatory and optional fields in the dismaxrequesthandler
Date Tue, 24 Jul 2007 08:17:29 GMT
Hello,

Is it possible to specify precisely one or more mandatory fields in a 
DismaxRequestHandler?

Something like that:

  <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
     </str>
     <str name="pf">
        text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
     </str>

     <str name="bla>
       +text +feature name manu
    <str>

where 'text' and 'feature' are mandatory and 'name' and 'manu' are 
optional fields.


Regards,

Arno.

Mime
View raw message