- Using the Debug Panel
- Supported Browsers
- Using Two Versions of jQuery in the Same Page
- Identifying the Version
- Enabling Debug Information in the REST Queries
- Using the Relevance Inspector
- Using With the On-Premises Search API
- CORS Errors
- Preventing Queries Without Keywords
- Why Are Result Counts Inaccurate With Folding Enabled?
- Why Are Some Child Items Not Folded?
- Preventing Tab Captions From Being Cut Off
Why Are Some Child Items Not Folded?
This page assumes you have followed the appropriate steps to implement result folding on your page (see Folding Results).
One important thing to remember about result folding is that the index does not necessarily fold all of the child items that belong to a parent-child relationship.
range value you specify in the
Folding component represents the maximum number of child items the index tries to fold per parent-child relationship.
A parent-child relationship must always have a parent, regardless of whether this parent is part of the current query result set or not.
Folding component is present in a search interface, the index proceeds as follows to fold query results:
- For each parent-child relationship in the current query result set:
- Find the parent.
- While the number of folded child items is less than the
- Try to find an additional child item, first in the current result set, then in the rest of the indexed items.
- If a child item is found, fold it.
Suppose you enable result folding in your search page and set the
range value to
6 (see Enabling Result Folding).
A user sends a query that returns a set of 25 results. Five of those results are email results that belong to the same parent-child relationship (an email conversation).
Let us assume that the parent item is in the query result set (in this case, the parent item is probably the oldest email result). This means that the remaining four results that belong to the email conversation are child items (email replies) in this email conversation. The index folds those four results under the parent item. Since the
range value is
6, the index can still fold two additional child items.
Suppose the original email conversation includes four additional replies. The index folds the first two additional child items it finds (the two most relevant replies that are not in the current result set). However, the index does not fold the remaining two child items, since the
range value does not allow it to fold any more child items.
In conclusion, the index folds up to a certain number of child items from those it deems most relevant to the current query.
The index uses the
sortCriteria of the current query to determine the order in which to fold the results.
If the current
date descending, the index folds the most recent replies of an email conversation first under their parent.
You can easily override this by specifying a value for the
rearrange option of the