首页 > 其他分享 >Elasticsearch xxx

Elasticsearch xxx

时间:2022-12-08 19:00:14浏览次数:31  
标签:index http 1.1 xxx 192.168 添加 Elasticsearch 文档

操作索引

1 添加 put 

​http://192.168.1.1/index ​

index 表示索引名称

2 查询 get

​http://192.168.1.1/index ​

3 关闭 post 

http://192.168.1.1/index /_close

_close 关键字 关闭索引

4 打开 post

http://192.168.1.1/index /_open

5 删除 delete 

​http://192.168.1.1/index ​

 

操作映射

1 添加映射

Elasticsearch xxx_分词器

创建索引并添加映射

 

Elasticsearch xxx_字段_02

 

 添加字段

Elasticsearch xxx_分词器_03

 

2  查询映射

 

Elasticsearch xxx_字段_04

 

操作文档

1.添加文档

Elasticsearch xxx_字段_05

 

2  查询文档

Elasticsearch xxx_分词器_06

  查询所有文档

Elasticsearch xxx_分词器_07

 

3  修改文档

id 2 存在则修改,不存在则添加

Elasticsearch xxx_字段_08

 

4.删除文档

Elasticsearch xxx_分词器_09

 

分词器

 



标签:index,http,1.1,xxx,192.168,添加,Elasticsearch,文档
From: https://blog.51cto.com/u_13854953/5923143

相关文章

  • QT配置cmake 报错:Cannot specify link libraries for target " XXX XXX " which is no
    报错Cannotspecifylinklibrariesfortarget"XXXXXX"whichisnotbuiltbythisproject是因为在使用target_link_libraries的时候,没有放到add_executable后面.......
  • 初次搭建win下的elasticsearch环境
    搭建这个环境,当然是为了elk啦只是搭建这个环境暗藏了几个坑 1.启动Elasticsearch时报错java.nio.file.NoSuchFileException\lib\dt.jar这个问题是因为本机上安装......
  • logback出现大量XXX_IS_UNDEFINED日志文件的问题
    前言在springboot中采用logback将日志打印到文件时,你是否遇到过文件名为XXX_IS_UNDEFINED的情况,今天带大家一块分析解决这个问题。一、logback中spring属性读取示例配置:<?x......
  • elasticsearch中如何实现dinstinct去重功能
    一、功能场景在mysql数据库中查询数据时,我们可以采用dinstinct关键字去重。那么,在ES中如何实现查询结果去重呢?二、原理分析DISTINCT关键字去重的sql语句等价于对需要去重的......
  • SpringBoot整合elasticsearch-rest-client实战
    前言很多人在Springboot项目中都已经习惯采用Spring家族封装的spring-data-elasticsearch来操作elasticsearch,而官方更推荐采用rest-client。今天给大家介绍下在springbo......
  • 全网最详细elasticsearch7.10.2安装手册
    前言网上关于elasticsearch的安全教程很多,但是只是局限在最基础的启动就成功就完了。今天给大家分享elasticsearch7.10.2最全安装手册,记录自己踩过的一些坑。一、环境说明服......
  • 还不会ES?Elasticsearch快速入门实操指南送上
    前言本文主要介绍ES的常用请求,让大家能快速上手ES的使用主要参考官网的​​Quickstart​​指引。一、请求方式向Elasticsearch发送请求主要有2种方式:1、使用restapi发送h......
  • elasticsearch安装和使用
    下载地址:https://www.elastic.co/cn/downloads/past-releases#elasticsearch    https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-......
  • springboot+Elasticsearch 复杂查询
    以前没做过ES里面的查询,第一次接触还是走了点弯路的。就是这个字段你在ES都不用模糊查的话,就可以设置 type=FieldType.Keyword,比如ID之类的。一:建ES存储的实体imp......
  • ElasticSearch
    ES安装介绍:ELK是Elasticsearch、Logstash、Kibana的合体,市面上也成为ElasticStack,是一个日志分析架构技术栈总称声明:JDK版本1.8+才可以安装:ElasticSearch客户端、可视......