lbdremy/solr-node-client — pull request #61 by amercader (2013-08-10 18:36:33+00:00)
Title: Add support for multiple facet.field values

The facet.field parameter can be specified multiple times to indicate
multiple facet fields [1]. This patch provides support for passing an array
instead of a string on the `field` key of the `query.facet` method
options, eg:

query.q({'*': '*'}).facet({'on': true, 'field': ['title', 'year']});

as well as:

query.q({'*': '*'}).facet({'on': true, 'field': 'title'});

[1] http://wiki.apache.org/solr/SimpleFacetParameters#facet.field