当前位置:网站首页>Es learning
Es learning
2022-06-25 10:31:00 【leon__ k】
1、 Pit encountered during installation
install ES:
- It needs to be closed in the configuration ssl verification
- There is information such as printing password during installation , Can copy , It can also be used. elasticsearch-reset-password.bat Reset password
install kibana:
- Need configuration es Address
- Prompt no login , Configured account password , Then prompt that it cannot be used elastic account number , It can be used token, use elasticsearch-service-tokens.bat Got token, Start successfully after configuration ( To obtain an account, you need to be elastic/kibana Namespace It can't be elastic/fleet-server Of )
2、 brief introduction
3、 Easy to use
check : Example
Change : Example
// link
$e = \Elasticsearch\ClientBuilder::create()
->setBasicAuthentication('elastic', ' password ') // User name, password
//->setApiKey() //api Sign in ( user name 2 choose 1)
->setHosts(['127.0.0.1:9200']) // Change port
->build();
// Version information
$elastic = $e->info();
// Index exists
$e->indices()->exists(['index' => 'k']);
// Create a simple index
$e->indices()->create(['index' => 'k']);
// Get index map
$e->indices()->getMapping(['index' => 'k']);
// Update index mapping
$client->update($params);
// increase
$e->index(['index' => 'k', 'body' => ['dd' => date('Y-m-d H:i:s')]])
//ID Just check
$e->get(['index' => 'k', 'id' => 'PbudUYEBuG61Ky6oi7Pk'])
// Fuzzy query
$params = [
'index' => 'k',
'body' => [
'query' => [
'match' => [
'dd' => '2022'
]
]
]
];
$e->search($params);
// Change
$params = [
'index' => 'k',
'id' => 'P7vCUYEBuG61Ky6otrO5',
'body' => [
'doc' => [
'dd' => '2022'
]
]
];
$e->update($params);
// Delete
$e->deleteByQuery($params);
// Delete index
$e->indices()->delete(['index' => 'k']);
边栏推荐
- How to develop wechat applet? How to open a wechat store
- OpenCV学习(一)---环境搭建
- 【论文阅读|深度】Role-based network embedding via structural features reconstruction with degree-regularized
- ShardingSphere-Proxy 4.1 分庫分錶
- How to make small programs on wechat? How to make small programs on wechat
- MCU development -- face recognition application based on esp32-cam
- Tutorial on installing SSL certificates in Microsoft Exchange Server 2007
- 好好思考
- Is it safe to open an account with Guangzhou securities by mobile phone?
- Solutions using protobuf in TS projects
猜你喜欢
Unreal Engine graphics and text notes: use VAT (vertex animation texture) to make Houdini end on Houdini special effect (ue4/ue5)
如何在Microsoft Exchange 2010中安装SSL证书
Houdini图文笔记:Your driver settings have been set to force 4x Antialiasing in OpenGL applications问题的解决
无心剑中译伊玛·拉扎罗斯《新巨人·自由女神》
Opencv learning (I) -- environment building
Redis (II) distributed locks and redis cluster construction
How much does a small program cost? How much does a small program cost? It's clear at a glance
ScheduleMaster分布式任务调度中心基本使用和原理
How to develop wechat applet? How to open a wechat store
一个五年北漂的技术er,根据这些年的真实经历,给应届生的一些建议
随机推荐
NetCore性能排查
Shardingsphere proxy 5.0 sub database and sub table (I)
How much does a wechat applet cost? Wechat applet development and production costs? Come and have a look
我希望按照我的思路尽可能将canvas基础讲明白
MCU development -- face recognition application based on esp32-cam
Oracle query comes with JDK version
我希望按照我的思路盡可能將canvas基礎講明白
单片机进阶---PCB开发之照葫芦画瓢(二)
I'm afraid of the goose factory!
CDN+COS搭建图床超详细步骤
Identityserver4 definition concept
[image fusion] image fusion based on morphological analysis and sparse representation with matlab code
Is it safe to open an account with Guangzhou securities by mobile phone?
How to install SSL certificates in Microsoft Exchange 2010
成长:如何深度思考与学习
Difference between malloc and calloc
OpenCV学习(一)---环境搭建
如何在Microsoft Exchange 2010中安装SSL证书
How do wechat sell small commodity programs do? How to open wechat apps to sell things?
Unreal Engine graphics and text notes: use VAT (vertex animation texture) to make Houdini end on Houdini special effect (ue4/ue5)