On Mon, Jul 13, 2015, at 06:55 AM, Iana Bondarska wrote: > Hi, > I'm using json query api for solr 5.2. When query for metrics for > multivalued fields, I get error: > can not use FieldCache on multivalued field: sales. > > I've found in solr wiki that to avoid using fieldcache I should set > facet.method parameter to "enum". > Now my question is how can I add facet.enum parameter to query? > My original query looks like this: > {"limit":0,"offset":0,"facet":{"facet":{"facet":{"mechanicnumbers_sum":"sum(sales)"},"limit":0,"field":"brand","type":"terms"}}} > > Adding method:enum inside facet doesn't help. Adding facet.method=enum > outside json parameter also doesn't help.
Can you provide the whole exception, including stack trace? This looks like a bug to me, as it should switch to using the FieldValueCache for multivalued fields rather than fail to use the FieldCache. Upayavira