first commit
This commit is contained in:
@@ -46,7 +46,7 @@ class PathToHierarchy implements FieldProcessor
|
||||
$results = [];
|
||||
|
||||
foreach ($values as $value) {
|
||||
$valueResults = $this->buildSolrHierarchyFromPath($value);
|
||||
$valueResults = $this->buildMeilisearchHierarchyFromPath($value);
|
||||
$results = array_merge($results, $valueResults);
|
||||
}
|
||||
|
||||
@@ -54,13 +54,13 @@ class PathToHierarchy implements FieldProcessor
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a Solr hierarchy from path string.
|
||||
* Builds a Meilisearch hierarchy from path string.
|
||||
*
|
||||
* @param string $path path string
|
||||
* @return array Solr hierarchy
|
||||
* @see http://wiki.apache.org/solr/HierarchicalFaceting
|
||||
* @return array Meilisearch hierarchy
|
||||
* @see http://wiki.apache.org/meilisearch/HierarchicalFaceting
|
||||
*/
|
||||
protected function buildSolrHierarchyFromPath($path)
|
||||
protected function buildMeilisearchHierarchyFromPath($path)
|
||||
{
|
||||
$hierarchy = [];
|
||||
$path = HierarchyTool::substituteSlashes($path);
|
||||
|
Reference in New Issue
Block a user