On 3/30/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
> Now I need to investigate the flexibility of the solrconfig.xml - can
> custom parameters be set there, such that a custom SolrRequestHandler
> could read them?   For example, I'd want to list the field names that
> are the "facets", such that counts for each of those are returned
> with each query.

Yes, here is a fragment from the example solrconfig.xml

  <!-- example of a request handler with custom parameters passed to it's init()
  <requestHandler name="example" class="myorg.mypkg.MyRequestHandler" >
    <int name="myparam">1000</int>
    <float name="ratio">1.4142135</float>
    <arr name="myarr"><int>1</int><int>2</int></arr>
    <str>foo</str>
  </requestHandler>
  -->

The XML format is the same as what is used in the response for general data.
In addition to the data types above, there is also <lst> which is the
same as <arr>
except that the elements are named.

-Yonik

Reply via email to