Understanding Result Folding

When there are items in your searchable content that have a parent-child relationship with one another, you may want to improve search page experience by grouping these results and rendering a hierarchical representation of their group, in which child items matching the query appear below the main result to which they are associated. This is called result folding.

See also Result Folding Tutorial.

Users may naturally expect a search page to display query result items such as email conversations as a group of item in which the original message is the parent of each subsequent reply.


Similarly, blog posts could be expected to have the related comment displayed underneath.

Enabling result folding in a search page may introduce search page behaviors that may look erroneous. See Result Folding and Mismatching Result Counts and Why Are Some Child Items Not Folded? for additional information.