Hierarchical facets

21 views
Skip to first unread message

Irene Vagionakis

unread,
Jun 7, 2021, 9:22:42 AM6/7/21
to EFES users
Dear all,
do you know if adding hierarchical search facets in EFES is particularly complex or quite feasible?
I was looking at this https://cwiki.apache.org/confluence/display/solr/HierarchicalFaceting, but I wouldn't know where to start...
Thank you!
Irene

Jamie Norrish

unread,
Jun 7, 2021, 5:25:44 PM6/7/21
to efes-...@googlegroups.com
On Mon, 2021-06-07 at 06:22 -0700, Irene Vagionakis wrote:

> do you know if adding hierarchical search facets in EFES is
> particularly complex or quite feasible?

That may depend on the specifics of what you want. Adding a hierarchy
to a specific facet using a facet pivot, and changing the UI to display
the facet values as nested, expandable lists, would involve:

* Changing the indexing for that facet to use multiple fields (one for
each level in the hierarchy), and to index each value at the
appropriate levels. This requires having access to the definition of
the hierarchy at index time.

* Adding support for facet.pivot to the Kiln query system - probably
not at all difficult.

* Adding support for displaying facet_pivot results - straightforward,
though almost certainly some bits of JavaScript would be wanted to
toggle expansion/collapse of the parts of the hierarchy.

Jamie

Irene Vagionakis

unread,
Jun 29, 2021, 1:54:41 PM6/29/21
to EFES users
Thanks, Jamie, I'll give it a try! And sorry for the late reply, something went wrong with the Google group notifications and I saw it only now.
Reply all
Reply to author
Forward
0 new messages