I define 2 facets - "brand" and "category". Both have been configured in a
request handler inside "defaults"

Now a client wants to use multi select faceting. He calls the following API:

http://localhost:8983/solr/collection1/search?q=*:*&facet.field={!ex=foo}category&fq={!tag=foo}category
:"cat"

What happens in DefaultSolrParams#getParams is it picks up the facet field
from the API and discards all the other facets defined in defaults. Thus
the response does not facet on brand.

If I put the facet definitions in "invariants" then whatever is provided by
the client will be discarded.

Putting the facet definitions in "appends" cases it to facet category 2
times.

Is there a way where he does not have to provide all the facet.field
parameters in the API call?


-- 


Regards,
Varun Thacker
http://www.vthacker.in/

Reply via email to