No, that’s not mandatory. That is just an example of how a request handler
could spell that out, but those parameters can be (and often are, depending on
the nature of the application) specified per request.
Erik
> On Jan 7, 2015, at 1:27 PM, Vishal Swaroop <[email protected]> wrote:
>
> Hi,
>
> I am exploring faceting in SOLR in collection1 example Faceting fields are
> defined in solrconfig.xml under browse request handler which is used in
> in-built "VelocityResponseWriter"
> <requestHandler name="/browse" class="solr.SearchHandler">
> ...
> <str name="facet">on</str>
> <str name="facet.field">cat</str>
> </requestHandler>
>
> I think it is not at all mandatory to define facet fields in
> solrconfig.xml, right ?
> Instead we can directly use facet in query URLs... e.g.
> http://
> <server>:8081/solr/mytestcollection/select?q=*:*&rows=0&facet=true&facet.field=item_id&facet.field=item_type&wt=json&indent=true
>
> Regards