首页 > 其他分享 >es基本操作

es基本操作

时间:2023-05-05 16:24:47浏览次数:41  
标签:http 9200 title shopping 192.168 基本操作 133.131 es


post http://192.168.133.131:9200/shopping/_doc
{
"title":"小米手机",
"category":"小米",
"images":"http://www.gulixueyuan.com/xm.jpg",
"price":4999
}

put http://192.168.133.131:9200/test

delete http://192.168.133.131:9200/test


post http://192.168.133.131:9200/shopping/_update/1001
{
"doc":{
"title":"华为手机"
}
}


get http://192.168.133.131:9200/_cat/indices?v
get http://192.168.133.131:9200/shopping/_doc/1001
get http://192.168.133.131:9200/shopping/_search
{
"query":{
"match":{
"title":"小米"
}
},
"from":0,
"size":2,
"_source":["title"],
"sort":{
"price":{
"order":"desc"
}
}
}

标签:http,9200,title,shopping,192.168,基本操作,133.131,es
From: https://www.cnblogs.com/xivzhou/p/17374466.html

相关文章

  • CF1823D Unique Palindromes
    题意你要构造一个长度为\(n\)的由小写字母组成的字符串,满足给出的\(k\)个约束。其中,每个约束以\(p(x_i,c_i)\)的方式给出,表示构造的字符串长度为\(x_i\)的前缀中应包含\(c_i\)个本质不同的回文子串(单个字符也算)。\(3\len\le2\times10^5\),\(1\lek\le20\)。......
  • node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module
    终端运行.js文件,之后又报错了,node:internal/modules/cjs/loader:1078throwerr;^......
  • Cesium 卷帘分析
    仓库里更新了卷帘功能,简单记录一下。卷帘功能如下图所示,将地球分为左右两块,通过中间的卷帘进行滑动,可以有效地进行左右对比,针对序列数据有良好的展示效果。如下接口,Cesium本身就支持我们针对地球左右两侧显示不同的图层。 故我们只需要对加载的图层设置 SplitDirection属......
  • Exploiting Cloze Questions for Few Shot Text Classification and Natural Language
    ExploitingClozeQuestionsforFewShotTextClassificationandNaturalLanguageInference  论文全程及链接:《ExploitingClozeQuestionsforFewShotTextClassificationandNaturalLanguageInferenceTimo》项目地址:https://github.com/timoschick/pet  ......
  • Python教程:pandas读写txt文件——DataFrame和Series
    大家用pandas一般都是读写csv文件或者tsv文件,读写txt文件时一般就withopen了,其实pandas数据类型操作起来更加方便,还是建议全用pandas这一套。读txt文件代码如下,主要是设置正则表达式的分隔符(sep参数),和列名取消(header参数),以及不需要列索引(index_col)。1df=pd.read_csv("workl......
  • WCF Error : Manual addressing is enabled on this factory, so all messages sent m
    WCFError:Manualaddressingisenabledonthisfactory,soallmessagessentmustbepre-addressed 回答2Iaddedaservicereferenceasusualandgotthiserror.TurnsoutallIhadtodowastoamendtheclientconfigtouseanendpointconfigwitha......
  • npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path C:\Program Files\node
    npm项目初始化代码npminit--yesidea代码安装npmnpmiexperss我输入的时候报错了,如下图所示没关系,只需要手动打开C盘的路径文件找到这个文件,并且把他Ctrl+D删除掉即可之后在运行这串代码就可以啦明显成功了......
  • CosineSimilarity
    余弦相似度implementation'org.apache.commons:commons-text:1.10.0'MeasurestheCosinesimilarityoftwovectorsofaninnerproductspaceandcomparestheanglebetweenthem.ForfurtherexplanationabouttheCosineSimilarity,refertohttp://en.......
  • h5 js RSA加密解密和AES加密解密
    一.RSA加密需要的js,点击下面链接可复制jsencrypt.js二.AES加密需要的js,点击下面链接可复制crypto-js.js三.加密方式1.单独使用RSA加密;(不推荐,加密后数据太大了)2.单独使用AES加密;(不推荐,安全性不好)3.RSA加密和AES加密混合使用;使用AES加密需要传的参数,使用RSA加密......
  • wireshark(抓包)学习
    1、Wireshark简介Wireshark(前称Ethereal)是一个免费开源的网络数据包分析软件。网络数据包分析软件的功能是截取网络数据包,并尽可能显示出最为详细的网络数据包数据。Wireshark官方网站:https://www.wireshark.org,可以去官网查看这款软件的详细信息2、Wireshark基本使用方法......