It's not possible in JSON Facet API now. It reminds me http://shaierera.blogspot.com/2013/01/facet-associations.html and https://issues.apache.org/jira/browse/SOLR-9480.
On Thu, May 24, 2018 at 11:31 AM, Tobias Kässmann <s...@tobiaskaessmann.de> wrote: > Hey, > I’m just playing around with the new payload feature in Solr and try to > use it within the facet component. > > In my documents I have a field called "keywords" and indexed there some > keywords for a document with a score as payload for each. Now I want to ask > a question like: "Which are the most relevant keywords for this query?“. > The keywords should be sorted by the summed score of each keyword in a doc. > > To do this, I’ve tried to use the JSON Facet API to sort by the sum of all > keyword payloads. But I couldn’t find a way to use the payload function > within the facet sorting. > > Do I miss something or is there so far no solution to sort the facets by > payload? > > Greetings, > Tobias -- Sincerely yours Mikhail Khludnev