
elasticsearch
qq_36028348
q472995301
展开
-
PHP中调用 ElasticSearch的数据
准备 1.环境window xampp 或者其他的php运行环境 2.windows下安装Composer-Setup.exe http://jingyan.baidu.com/article/4f34706ed04013e386b56d72.html 3.在php.ini中开启curl和openssl 使用 接下来介绍如何使用elasticsearch-php 4. 在E盘新建文件夹命名为elastic,下载composer.phar 拷贝composer.p...转载 2021-01-11 10:27:50 · 361 阅读 · 0 评论 -
elasticsearch php 分词连接 搜索
<?php header("Content-type: text/html; charset=utf-8"); $url = 'http://127.0.0.1:9200/_analyze'; //ik_smart ik_max_word $list = curl_post_json('http://127.0.0.1:9200/_analyze', json_encode(array('analyzer' => 'ik_smart', 'text' => '汽车零部件/养护/美容/维保.原创 2021-06-16 23:06:19 · 410 阅读 · 1 评论