Use lucene FacetField instead of Elasticsearch MutiBucketCollector to improve performance

I'm doing aggs.terms (StringTermsAggregator) on 300 fields, which takes 60~100ms (there are 300 docs after query/filter).

If using lucene org.apache.lucene.facet.FacetsCollector, it takes 10ms.

Is there a way to use lucene FacetField in Elasticseach? If not, should we add such a field type?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.