first commit
This commit is contained in:
@@ -30,11 +30,11 @@ use WapplerSystems\Meilisearch\Domain\Search\ResultSet\Result\SearchResultBuilde
|
||||
use WapplerSystems\Meilisearch\Domain\Search\ResultSet\SearchResultSet;
|
||||
use WapplerSystems\Meilisearch\Domain\Search\ResultSet\SearchResultSetProcessor;
|
||||
use WapplerSystems\Meilisearch\System\Configuration\TypoScriptConfiguration;
|
||||
use WapplerSystems\Meilisearch\System\Solr\ResponseAdapter;
|
||||
use WapplerSystems\Meilisearch\System\Meilisearch\ResponseAdapter;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
/**
|
||||
* Builds the SearchResult objects from the solr response and assigns the created child SearchResult objects (the variants)
|
||||
* Builds the SearchResult objects from the meilisearch response and assigns the created child SearchResult objects (the variants)
|
||||
* to the parent search result object.
|
||||
*/
|
||||
class VariantsProcessor implements SearchResultSetProcessor
|
||||
@@ -114,7 +114,7 @@ class VariantsProcessor implements SearchResultSetProcessor
|
||||
$fields = get_object_vars($variantDocumentArray);
|
||||
$variantDocument = new SearchResult($fields);
|
||||
|
||||
$variantSearchResult = $this->resultBuilder->fromApacheSolrDocument($variantDocument);
|
||||
$variantSearchResult = $this->resultBuilder->fromApacheMeilisearchDocument($variantDocument);
|
||||
$variantSearchResult->setIsVariant(true);
|
||||
$variantSearchResult->setVariantParent($resultDocument);
|
||||
|
||||
|
Reference in New Issue
Block a user