提交 efa1b7a1 编写于 作者: T Terry

xunsearch engine add columns

上级 7f6d8371
......@@ -21,6 +21,16 @@ index = mixed
type = string
index = mixed
[status]
type = numeric
index = self
[is_in_stock]
type = numeric
index = self
[score]
type = numeric
index = none
......
......@@ -149,6 +149,9 @@ class XunSearch extends Service implements SearchInterface
if ($productM && $enableStatus == $productM['status']) {
$productIds[] = $productM['_id'];
} else {
if (!isset($where['status'])) {
$where['status'] = Yii::$service->product->getEnableStatus();
}
$XunSearchQuery = $this->_searchModel->find()->asArray();
$XunSearchQuery->fuzzy($this->fuzzy);
$XunSearchQuery->synonyms($this->synonyms);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册