[英]Where to put/find schema.xml and other config files in solarium using Yii2?
I'm trying to use Solr through solarium under Yii 2 Framework, after Googling for many hours i still don't know where is the config files. 我试图在Yii 2 Framework下通过日光浴室使用Solr,在谷歌搜索了许多小时后,我仍然不知道配置文件在哪里。
I only have solarium folder under vendor, 我只有供应商下的日光浴室文件夹,
--- vendor
--- solarium
--- solarium
--- examples
--- library
--- phar
--- tests
...
but i don't know how to add the config files, and what if i need to create multiple indexes/cores. 但是我不知道如何添加配置文件,如果我需要创建多个索引/核心,该怎么办。
Thanks 谢谢
Try using the yii2-solr package. 尝试使用yii2-solr软件包。 From their website, you need to add these configurations to your
@app/config/main.php
file. 在他们的网站上,您需要将这些配置添加到
@app/config/main.php
文件中。
'components' => [
...
'solr' => [
'class' => 'sammaye\solr\Client',
'options' => [
'endpoint' => [
'solr1' => [
'host' => '10.208.225.66',
'port' => '8983',
'path' => '/solr'
]
]
]
],
...
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.