diff --git a/app/common/library/elasticsearch/Client.php b/app/common/library/elasticsearch/Client.php index 31b52f82..880d4251 100644 --- a/app/common/library/elasticsearch/Client.php +++ b/app/common/library/elasticsearch/Client.php @@ -308,7 +308,8 @@ class Client // 'match_phrase' => [$filed => $value] // ]; $orlike[] = [ - 'match' => [$filed => ['query' => $value, 'fuzziness' => "AUTO", 'operator' => 'or']] + 'match' => [$filed => ['query' => $value, 'operator' => 'or']] + //'match' => [$filed => ['query' => $value, 'fuzziness' => "AUTO", 'operator' => 'or']] ]; } } diff --git a/app/common/service/GoodsCateEs.php b/app/common/service/GoodsCateEs.php index 95938b6e..4455e991 100644 --- a/app/common/service/GoodsCateEs.php +++ b/app/common/service/GoodsCateEs.php @@ -86,7 +86,7 @@ class GoodsCateEs $model = new Goods; $goods_ids = array_column($data['data'], "goods_id"); $goods_list = array_column($data['data'], null, "goods_id"); - // var_dump($goods_ids); + // var_dump($data['data']); // exit(); //$list = $model->getListByIds($goods_ids, 10); $list = $model->getListByIdsFromApi($goods_ids);