Hmm I don't think Lucene's facets make that easy today, but it would maybe be minor code change: in IntTaxonomyFacets.getTopChildren where it checks if values[ord] > 0 you just need > yourMinCount instead. Maybe open an issue?
Mike McCandless http://blog.mikemccandless.com On Mon, Sep 19, 2016 at 11:00 PM, Cam Bazz <camb...@gmail.com> wrote: > Hello, > > FacetResult getTopChildren returns the top N facets, however I need to > return facets where count is above a certain threshold, for example return > all facets that had counts > 10. > > Is there a way to accomplish this? I have been looking over the API docs > and could not find it. I could maybe getTopChildren with Integer.MAX_VALUE > and then manually filter for count. > > Best Regards, > C. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org