lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: defining qf in your own request handler
Date Mon, 24 Aug 2009 17:38:52 GMT
On Mon, Aug 24, 2009 at 10:43 PM, darniz <rnizamuddin@edmunds.com> wrote:

>
> Hello
> i created a custom request handler and i want it to do a search on features
> and make field by default. i added the following decleration  in my
> solrconfig.xml file
> <requestHandler name="/def-features-make" class="solr.SearchHandler">
>    <!-- default values for query parameters -->
>     <lst name="defaults">
>       <int name="rows">12</int>
>       <str name="echoParams">explicit</str>
>       <str name="fl">*</str>
>       <str name="sort">model desc</str>
>       <str name="qf">features,make</str>
>     </lst>
>  </requestHandler>
> as you can see in the qf i defined features and make to be the default
> search fields,
>

The "qf" parameter is specific to dismax. Change the query type to dismax by
adding:

<str name="defType">dismax</str>

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message