-1

Using bobo-browse MultiValueFacetHandler to gather multi-valued faceted results, how do I sort these facets by the top-scoring document in each facet?
For example, if:

  • Document d1 has facets f1 and f2 and score 3.5
  • Document d2 has facets f2 and f3 and score 4.7
  • Document d3 has facets f1 and f3 and score 0.9
  • Document d4 has facets f2 and f3 and score 2.2
  • Document d5 has facet f1 and score 3.4
  • Document d6 has facet f3 and score 5.4

I would expect these results in this order:

  • f3, f2, f1

Thank you.

z12345
  • 2,186
  • 4
  • 20
  • 28

1 Answers1

0

There is no straightforward answer to this question. Documents don't have enough information to associate different fields, so only easy solution is to generate derived fields whose value is a concatenation of other field values and use this to build facets.

z12345
  • 2,186
  • 4
  • 20
  • 28