Using the json facet, I think a combination of "limit" (to limit the number of records to be equal or less than the value you're looking for) and "sort" (something like sort:{count:asc} ) would give you what you're describing.
This taken from: https://solr.apache.org/guide/8_8/json-facet-api.html#terms-facet Kyle On Thu, Aug 26, 2021 at 7:25 PM Scott Derrick <sc...@tnstaafl.net> wrote: > There is a mincount when requesting a type: terms facet, limiting the > return buckets to at least this number, default 1 > > I need a maxcount, limiting the return buckets to less than a specified > number. > > I'm interested in the rare words, not the common words. > > thanks, > > Scott > -- *Kyle Fransham* Vice President - Research and Development *Manage, Protect & Secure Unstructured Data at Scale* tel 613-729-1100 | mobile 613-897-9414 | www.supernaeyeglass.com <https://www.facebook.com/SupernaNET> <https://twitter.com/SupernaNet> <https://www.linkedin.com/company/superna-net> -- CONFIDENTIALITY NOTICE: The information contained in this email is privileged and confidential and intended only for the use of the individual or entity to whom it is addressed. If you receive this message in error, please notify the sender immediately at 613-729-1100 and destroy the original message and all copies. Thank you.