first commit

This commit is contained in:
Sven Wappler
2021-04-17 21:20:54 +02:00
parent c93ec9492a
commit cadcc8edb4
406 changed files with 4917 additions and 5157 deletions

View File

@@ -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);