当前位置:网站首页>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']);
边栏推荐
- tokenizers>=0.11.1,!= 0.11.3,<0.13 is required for a normal functioning of this module,
- Mqtt beginner level chapter
- 【历史上的今天】6 月 24 日:网易成立;首届消费电子展召开;世界上第一次网络直播
- [RPC] i/o model - Rector mode of bio, NiO, AIO and NiO
- ShardingSphere-Proxy 4.1 分库分表
- 学会自学【学会学习本身,比学什么都重要】
- JS【中高级】部分的知识点我帮你们总结好了
- How to build a wechat applet? How to open an applet?
- ShardingSphere-Proxy 4.1 分庫分錶
- How to develop wechat applet? How to open a wechat store
猜你喜欢

The path of Architects

String implementation strstr()

Linked list delete nodes in the linked list

i++ 和 ++i的真正区别

P2P network core technology: Gossip protocol

Detailed explanation of Android interview notes handler

Redis(一)原理与基本使用

Redis (I) principle and basic use

Unreal Engine graphics and text notes: use VAT (vertex animation texture) to make Houdini end on Houdini special effect (ue4/ue5)

虚幻引擎图文笔记:使用VAT(Vertex Aniamtion Texture)制作破碎特效(Houdini,UE4/UE5)上 Houdini端
随机推荐
Computational Thinking and economic thinking
《天天数学》连载52:二月二十日
Free platform for wechat applet making, steps for wechat applet making
ShardingSphere-Proxy 4.1 分库分表
Learn to learn self-study [learning to learn itself is more important than learning anything]
Can two Mitsubishi PLC adopt bcnettcp protocol to realize wireless communication of network interface?
Shardingsphere proxy 4.1 Sous - base de données sous - table
Redis(一)原理与基本使用
单片机进阶---PCB开发之照葫芦画瓢(二)
ShardingSphere-Proxy 5.0 分库分表(一)
【RPC】I/O模型——BIO、NIO、AIO及NIO的Rector模式
Kotlin arrays and collections (1) {create arrays, use arrays, use for in loops to traverse arrays, use array indexes, and multi-dimensional arrays}
How to make small programs on wechat? How to make small programs on wechat
Think about it
BUG-00x bug description + resolve ways
Macro application connector\
SQL to object thinking vs SQL of object thinking
什么是 CRA
Free applet making tool, how to make wechat applet
虚幻引擎图文笔记:使用VAT(Vertex Aniamtion Texture)制作破碎特效(Houdini,UE4/UE5)上 Houdini端
