arun
arun

Reputation: 11023

How to set facet method in SolrJ?

How to set facet.method=enum in SolrJ SolrQuery? I am looking for something like solrQuery.setFacetMethod(SOLR_FACET_METHOD.enum)

Upvotes: 2

Views: 1012

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

I think you will need to use the generic setParam method since it is not exposed directly.

solrQuery.setParam(FacetParams.FACET_METHOD, FacetParams.FACET_METHOD_enum)

Upvotes: 5

Related Questions