配置信息:
'xunSearch' => [
'enableService' => false,
'fuzzy' => true, // 是否开启模糊查询
'enableService' => true,
'synonyms' => true, //是否开启同义词翻译
'searchLang' => [
'zh' => 'chinese',
],
],
错误信息:
Http status: 500 Internal Server Error
ajaxOptions: error
thrownError: Internal Server Error
Exception 'XSErrorException' with message 'fsockopen(): unable to connect to localhost:8383 ()'
in E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\lib\XS.class.php:711
Stack trace:
#0 [internal function]: xsErrorHandler(2, 'fsockopen(): un...', 'E:\projects\luo...', 476, Array)
#1 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\lib\XSServer.class.php(476): fsockopen('localhost', 8383, 10061, '\xD3\xC9\xD3\xDA\xC4\xBF\xB1\xEA\xBC\xC6\xCB\xE3\xBB\xFA\xBB...', 5)
#2 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\lib\XSServer.class.php(172): XSServer->connect()
#3 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\lib\XSServer.class.php(147): XSServer->open(8383)
#4 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\lib\XS.class.php(415): XSServer->construct(8383, Object(XS))
#5 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\lib\XS.class.php(186): XS->getIndex()
#6 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\wrapper\yii2-ext\Database.php(83): XSComponent->get('index')
#7 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\hightman\xunsearch\wrapper\yii2-ext\ActiveRecord.php(297): hightman\xunsearch\Database->getIndex()
#8 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\yiisoft\yii2\db\BaseActiveRecord.php(646): hightman\xunsearch\ActiveRecord->insert(true, NULL)
#9 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\helper\AR.php(99): yii\db\BaseActiveRecord->save()
#10 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\search\XunSearch.php(76): fecshop\services\helper\AR->save(Object(fecshop\models\xunsearch\Search), Array, true)
#11 [internal function]: fecshop\services\search\XunSearch->actionSyncProductInfo(Array, 20)
#12 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\Service.php(49): call_user_func_array(Array, Array)
#13 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\Search.php(62): fecshop\services\Service->call('syncProductInfo', Array)
#14 [internal function]: fecshop\services\Search->actionSyncProductInfo(Array)
#15 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\Service.php(49): call_user_func_array(Array, Array)
#16 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\product\ProductMongodb.php(338): fecshop\services\Service->__call('syncProductInfo', Array)
#17 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\Product.php(357): fecshop\services\product\ProductMongodb->save(Array, '/product/egg-xt...')
#18 [internal function]: fecshop\services\Product->actionSave(Array, 'catalog/product...')
#19 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\services\Service.php(49): call_user_func_array(Array, Array)
#20 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\app\appadmin\modules\Catalog\block\productinfo\Manageredit.php(400): fecshop\services\Service->call('save', Array)
#21 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\fancyecommerce\fecshop\app\appadmin\modules\Catalog\controllers\ProductinfoController.php(50): fecshop\app\appadmin\modules\Catalog\block\productinfo\Manageredit->save()
#22 [internal function]: fecshop\app\appadmin\modules\Catalog\controllers\ProductinfoController->actionManagereditsave()
#23 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#24 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#25 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('managereditsave', Array)
#26 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('catalog/product...', Array)
#27 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#28 E:\projects\luoyi\project\trunk\yii\local-shop\trunk\src\appadmin\web\index.php(79): yii\base\Application->run()
#29 {main}
我这边不需要用到这个功能,怎么关闭呢?