TYPO3 SolrConnection 删除了搜索,现在怎么办?

问题描述 投票:0回答:1

在 extbase 服务类中从 Solr 获取数据的新方法是什么?我们之前这样做过:

 $solrResponse = $this->solr->search('type:car', $offset, $limit);

$this->solr 是

的实例
ApacheSolrForTypo3\Solr\System\Solr\SolrConnection

但是方法 search 在扩展程序的新版本中被删除了

apache-solr-for-typo3/solr
(当前使用 9.0.2),现在我找不到该方法的替代方法。

其他人也遇到这个问题吗?为什么我们在扩展服务中需要它?好吧,我们将外部 graphQL 索引到我们的 TYPO3-solr 中。

非常感谢您的帮助。

solr typo3 typo3-9.x
1个回答
2
投票

我们已改用 Solarium 作为新的 PHP Solr 库。

https://solarium.readthedocs.io/en/stable/

或在这里挖掘:

https://github.com/TYPO3-Solr/ext-solr/tree/master/Classes/Search

HTH

奥利维尔

© www.soinside.com 2019 - 2024. All rights reserved.