> > II. Is there a way to use the stats.calcdistinct functionality and only > return the countDistinct portion of the response and not the full list of > distinct values -- as provided in the distinctValues portion of the > response. In a field with high cardinality the response size becomes too > large. >
I don't think this is currently supported. > > If there is no such option, could someone point me in the right direction > for implementing a custom solution? > The problem is how to calculate this in distributed requests. Even if the final response doesn't include the distinct values, the shard responses will probably have to. Look at StatsComponent.java and AbstractStatsValues in StatsValuesFactory.java Tomás > > Thank you for your time, > Levan > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/5-1-unique-facet-function-calcDistinct-tp4200110.html > Sent from the Solr - User mailing list archive at Nabble.com. >