}
}
else if (searchFilter.getType().equals(
DiscoveryConfigurationParameters.TYPE_HIERARCHICAL))
{
HierarchicalSidebarFacetConfiguration hierarchicalSidebarFacetConfiguration = (HierarchicalSidebarFacetConfiguration) searchFilter;
String[] subValues = svalue
.split(hierarchicalSidebarFacetConfiguration
.getSplitter());
if (hierarchicalSidebarFacetConfiguration
.isSkipFirstNodeLevel() && 1 < subValues.length)
{
// Remove the first element of our array
subValues = (String[]) ArrayUtils.subarray(
subValues, 1, subValues.length);
}
for (int i = 0; i < subValues.length; i++)
{
StringBuilder valueBuilder = new StringBuilder();
for (int j = 0; j <= i; j++)
{
valueBuilder.append(subValues[j]);
if (j < i)
{
valueBuilder
.append(hierarchicalSidebarFacetConfiguration
.getSplitter());
}
}
String indexValue = valueBuilder.toString().trim();