Score:1

Display multiple values in separate rows with view that uses Search API

cn flag

Yesterday I asked this question, but after realizing the issue was specific to my view relying on an indexed field using the Search API module I wanted to make another post getting more specific help.

So I have a content type, "Person," that uses an entity reference to assign each person a program. I'm trying to make a "People" page for my site that groups the people by said program that they are in (ex. Human Resources, Engineering, Design, etc. etc.)

What the view does when grouping by Program is this:

Engineering, Design:

  • Carlyn Beres

What I want it to do instead is this:

Engineering:

  • Carlyn Beres

Design:

  • Carlyn Beres

Unchecking the "Display all values in the same row" doesn't change it, and when adding "Aggregated Fields" as an indexed item in my Search API the only options I get are Union, Concatenate, Count, Sum, First, Last.

None of these options allow me to display fields with multiple values in separate rows.

Anything I'm missing here?

Thank you!

sonfd avatar
in flag
While not an ideal solution or even possible in some cases (e.g if the view has filters that make it impossible), I've worked around some grouping issues like this by creating my view to display the entity that I'm grouping by, and then displaying a view mode of that entity that shows the data I want. E.g. Create my view to display Programs and display a view mode of Programs that shows the Program's people.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.