protected function getPathAsArray($path)
    {
        $path = str_replace('\/', '@@@', $path);
        $path = rtrim($path, "/");
        $segments = explode('/', $path);
        return array_map(function($item) {
            return str_replace('@@@', '/', $item);
        }, $segments);
    }
protected function getPathAsArray($path)
    {
        $path = str_replace('\/', '@@@', $path);
        $path = rtrim($path, "/");
        $segments = explode('/', $path);
        return array_map(function($item) {
            return str_replace('@@@', '/', $item);
        }, $segments);
    }
protected function getPathAsArray ( $ path ) { $ path = str_replace ( '\/' , '@@@' , $ path ) ; $ path = rtrim ( $ path , "/" ) ; $ segments = explode ( '/' , $ path ) ; return array_map ( function ( $ item ) { return str_replace ( '@@@' , '/' , $ item ) ; } , $ segments ) ; }
This method is used to get the path array from a hierarchical facet. It substitutes escaped slashes to keep them
when they are used inside a facetValue.

@param string $path
@return array
This method is used to get the path array from a hierarchical facet . It substitutes escaped slashes to keep them when they are used inside a facetValue .