ElasticSearch 学习笔记之踩坑日记 作者: lovingyu_er 时间: 2020-12-28 18:44:00 分类: Elasticsearch 评论 ###错误1: ``` A PHP Error was encountered Severity: Warning Message: require_once(/var/www/html/tvupd/website/application/libraries/Elasticsearch/Endpoints/AbstractEndpoint.php): failed to open stream: No such file or directory Filename: ip/Loader.php Line Number: 11 ``` 解决建议:请查看自己的PHP版本是否满足```Elasticsearch-PHP```的版本要求,我的系统是php7.0.3而升级到php7.4.13才没有问题. - 阅读剩余部分 -
Elasticsearch学习笔记之安装篇(7.x) 作者: lovingyu_er 时间: 2020-12-28 17:20:00 分类: Elasticsearch 评论 本章内容,主要是介绍elasticsearch最新版本的安装(apt) ####Linux系统版本 ``` Ubuntu 16.04.7 LTS \n \l ``` ``` Linux hostname 4.4.0-194-generic #226-Ubuntu SMP Wed Oct 21 10:19:36 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ``` #### 安装部署: #####1. PGP key 的添加 在安装之前,首先要获取到```elasticsearch```的```PGP key```,这个官方给了一个线上更新的方法,```elsaticsearch```已经将所有的包进行的```PGP key```的授权,简单的使用方式就是: - 阅读剩余部分 -
Elasticsearch -PHP 查询 ( Version 7.x) 作者: lovingyu_er 时间: 2020-12-04 09:56:00 分类: Elasticsearch 评论 ####ElasticSearch-PHP库索引文档 索引文档,是增加文档的一种方式(增加文档->类似mysql中插入数据,请自行转换概念:文档->mysql中表的一条记录) ####indexAPI ```ElasticSearch index```方法的作用: ``` Adds a JSON document to the specified data stream or index and makes it searchable. If the target is an index and the document already exists, the request updates the document and increments its version. ``` 如果文档已经存在,该方法就会更新文档,并且递增该文档的版本号。 注意: ``` You cannot use the index API to send update requests for existing documents to a data stream ``` 不要使用``` index API``` 去更新一个已经存在的文档到数据流 #### x-Pack插件 一个集安全、警报、监视、报告和图形功能于身的扩展,轻松开启或关闭那你想要的功能。
ElasticSearch学习笔记(四) ElasticSearch为什么要移除mapping type的映射 作者: lovingyu_er 时间: 2020-12-03 19:10:00 分类: 编程语言,Elasticsearch 评论 ####问题 今天在使用elasticSearch的type的时候,发现在创建所以的时候: ``` PUT localhost:9200/rds_channel?pretty ``` - 阅读剩余部分 -
门面模式(Facade) 作者: lovingyu_er 时间: 2020-11-30 00:01:14 分类: 设计模式|思想 评论 ###介绍 少不了繁琐的定义描述,门面模式又叫外观模式,属于一种结构型设计模式,主要的目的是为了避免阅读复杂的API文档。降低耦合并且遵循([Demeter定律](https://darrykinger.com/archives/559.html "Demeter定律")) ** 为子系统中一组接口,提供一个统一高层的接口,使子系统更加容易使用** - 阅读剩余部分 -