当前位置:首页 > 日记本 > 正文内容

elasticsearch常用接口

zhangchap2年前 (2022-07-28)日记本202

相关接口
1. 默认端口地址

http://127.0.0.1:9200/

2. 查看索引库信息

http://127.0.0.1:9200/_cat/indices?v

3. 搜索索引里面的内容

http://127.0.0.1:9200/[索引名称]/_search

4. 搜索title里面包含seo的文档

http://127.0.0.1:9200/test-demo/_search?q=title:seo

5. 搜索所有字段里面包含seo的文档
http://127.0.0.1:9200/test-demo/_search?q=seo








分享给朋友:

相关文章

Nginx+PHP,PHP如何优化配置?

具体修改FPM配置文件参数: 若你的php日志出现: WARNING: [pool www] seems busy (you may need to increase pm.sta...

python 随机生成时间戳写入txt文件/运行sql语句

import time from random import randint with open('time.txt', ...

python 获取当前时间及随机时间戳

import time from random import randint time.strftime('%Y-%m-%d %H:%M:...

python读取txt文件放到Queue队列

from queue import Queue with open('kw.txt',encoding='utf-8')&nb...

python提高运行速度numba.jit

使用numba.jit。 numba可以将 Python 函数 JIT 编译为机器码执行,大大提高代码运行速度。import time def computeSum(size:&...

python下elasticsearch简单接口操作

# -*- coding:utf-8 -*- # elasticsearch 默认算法bm25 from elasticsearch&n...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。