前面几课ES的基本概念.安装和分词都讲过了,下面我们就来实战一下ES的核心功能-搜索,这节课我们主要讲的是基本搜索 _search(注意:ES的关键字都要加前缀_,所以我们在定义索引.类型名称时不要带_). 我们先通过kibana插入几条三个文档 PUT /customer/doc/?pretty { "name": "John Doe" } POST /customer/doc/ { "title": "My second blog…
"error": { "root_cause": [ { "type": "query_phase_execution_exception", "reason": "Result window is too large, from + size must be less than or equal to: [1000000] but was [1000000099]. See the scroll…
..........控制器方法 public function index() { //接受搜索关键字 $word=input('word'); $where=[]; if (!empty($word)){ $where['title']=['like',"%".$word."%"]; } $data=ArticleModel::index($where,$word); if (!empty($data)){ foreach ($data as $k=>$v)…