当前位置: 首页 > news >正文

怎么看别人的网站有没有做301中国宣布取消新冠免费治疗

怎么看别人的网站有没有做301,中国宣布取消新冠免费治疗,网站建设主要工作内容,flash网站设计教程目录 一、rest api 1. 新建索引 2. 删除索引 3. 插入单条数据 4. 更新单条数据 5. 删除单条数据 6. 查询数据 二、python elasticsearch库 1. 新建索引 一、rest api 1. 新建索引 请求方式:PUT 请求URL:http://ip/(your_index_nam…

目录

一、rest api

1. 新建索引

2. 删除索引

3. 插入单条数据

4. 更新单条数据

5. 删除单条数据

6. 查询数据

二、python elasticsearch库

1. 新建索引


一、rest api

1. 新建索引

请求方式:PUT

请求URL:http://ip/(your_index_name)

示例URL:http://ip/test_log_20240710-0

 数据参数:

params = {"settings": {"number_of_shards": 1,"number_of_replicas": 0},"aliases": {"test_log":{}},"mappings": {"properties": {"create_time": {"type": "date"},"status":{"type": "integer"},"dev_ip":{"type": "ip"},"dev_uuid":{"type": "keyword"},"user": {"properties": {"name": {"type": "text"},"age": {"type": "integer"},"email": {"type": "keyword"}}},"infos": {"type": "nested","dynamic": false,"properties": {"v_id": {"type": "keyword"},"v_name": {"type": "keyword"},"v_desc": {"type": "text"}}},"remark": {"type": "text"},"show_num": {"type": "long", "doc_values": false, "index": false}}}
}"""
字段类型:text:用于全文本搜索,如文章内容。text字段会被分析器分词,支持模糊搜索和前缀搜索。
keyword:用于不进行分词的搜索,适合存储关键词、ID、标签等。keyword字段不会被分词,适用于精确匹配和聚合。
integer/long/short/byte/double/float/half_float/scaled_float:用于数值类型的数据,不同的类型对应不同的数值范围和精度。
boolean:布尔型字段,值只能是true或false。
binary:用于存储二进制数据,如图像或文件。
date:日期时间字段,可以使用ISO8601格式的字符串或毫秒级的时间戳。
date_nanos:纳秒精度的日期时间字段,存储为纳秒时间戳。
ip:用于存储IPv4或IPv6地址。
object:用于嵌套的JSON对象。可以定义内部字段的映射。
nested:用于存储复杂结构的嵌套文档,允许对嵌套文档进行独立索引和搜索。
geo_point:用于地理坐标,支持基于地理位置的查询。
geo_shape:用于地理形状,如多边形,支持更复杂的地理查询。
completion:用于自动补全功能,存储经过分析的词条列表。
constant_keyword:与keyword类似,但值在索引时会被复制到所有分片,加速聚合操作。
token_count:用于存储分词后的词数。
"""

2. 删除索引

请求方式:DELETE

请求URL:http://ip/(your_index_name)

示例URL:http://ip/test_log_20240710-0

3. 插入单条数据

请求方式:POST

请求URL:http://ip/(your_index_name)

示例URL:http://ip/test_log_20240710-0

数据参数:

{"create_time": 1720601022255,"status": 201,"dev_ip": "192.168.1.101","dev_uuid": "123e4567e89b12d3a456426614174000","user": {"name": "战三","age": 30,"email": "zhansan@example.com"},"infos": [{"v_id": "123e4567e89b12d3a456426614174000","v_name": "战三","v_desc": "描述啦啦啦啦啦啦"}],"remark": "描述!!!!!","show_num": 6789
}

4. 更新单条数据

请求方式:PUT

请求URL:http://ip/(your_index_name)/_doc/(本条记录id)

示例URL:http://ip/test_log_20240710-0/_doc/KjjOm5ABJ5wlHmqgfJvm

数据参数:

{"create_time": "2023-04-01T12:00:00Z","status": 200,"dev_ip": "192.168.1.100","dev_uuid": "123e4567-e89b-12d3-a456-426614174000","user": {"name": "阿汉","age": 30,"email": "john.doe@example.com"},"infos": [{"v_id": "info1","v_name": "Info One","v_desc": "This is the description of info one."},{"v_id": "info2","v_name": "Info Two","v_desc": "This is the description of info two."}],"remark": "Additional remarks about this log entry.","show_num": 12345
}

5. 删除单条数据

请求方式:DELETE

请求URL:http://ip/(your_index_name)/_doc/(本条记录id)

示例URL:http://ip/test_log_20240710-0/_doc/KjjOm5ABJ5wlHmqgfJvm

数据参数:无

6. 查询数据

请求方式:POST

请求URL:http://ip/(your_index_name)/_search

示例URL:http://ip/test_log_20240710-0/_search

数据参数:

{"size": 10,"query": {"bool": {"must": [{"term": {"status": 200}}]}}
}

二、python elasticsearch库

1. 新建索引

......


文章转载自:
http://dinncoflocculus.bkqw.cn
http://dinncomatricide.bkqw.cn
http://dinncogoa.bkqw.cn
http://dinncomatriline.bkqw.cn
http://dinncobarracks.bkqw.cn
http://dinncotutwork.bkqw.cn
http://dinncosaccular.bkqw.cn
http://dinncosemimanufactures.bkqw.cn
http://dinncodad.bkqw.cn
http://dinncodiminish.bkqw.cn
http://dinncocove.bkqw.cn
http://dinncofriable.bkqw.cn
http://dinnconewsagent.bkqw.cn
http://dinnconrtya.bkqw.cn
http://dinncostablish.bkqw.cn
http://dinncoumayyad.bkqw.cn
http://dinncoslowpoke.bkqw.cn
http://dinncomunicipalism.bkqw.cn
http://dinncoansate.bkqw.cn
http://dinncohogmanay.bkqw.cn
http://dinncodichlorodifluoromethane.bkqw.cn
http://dinncopickaroon.bkqw.cn
http://dinncojetboat.bkqw.cn
http://dinncozoo.bkqw.cn
http://dinncocosmoid.bkqw.cn
http://dinncoinh.bkqw.cn
http://dinncowandsworth.bkqw.cn
http://dinncoipsu.bkqw.cn
http://dinncofogey.bkqw.cn
http://dinncosecular.bkqw.cn
http://dinncouigur.bkqw.cn
http://dinncoserpigo.bkqw.cn
http://dinncocobdenism.bkqw.cn
http://dinncophilippeville.bkqw.cn
http://dinncocamleteen.bkqw.cn
http://dinncomicroprogram.bkqw.cn
http://dinncopointsman.bkqw.cn
http://dinncojingle.bkqw.cn
http://dinncohexatone.bkqw.cn
http://dinncomethotrexate.bkqw.cn
http://dinncodunderhead.bkqw.cn
http://dinncopeddler.bkqw.cn
http://dinncocgmp.bkqw.cn
http://dinncoexanimation.bkqw.cn
http://dinncorobotnik.bkqw.cn
http://dinncotrevira.bkqw.cn
http://dinncoquarrelsomely.bkqw.cn
http://dinncopremie.bkqw.cn
http://dinncohunting.bkqw.cn
http://dinncoinferno.bkqw.cn
http://dinncoenlink.bkqw.cn
http://dinncogristly.bkqw.cn
http://dinncobronchial.bkqw.cn
http://dinncoactualite.bkqw.cn
http://dinncoextracorporeal.bkqw.cn
http://dinncosuet.bkqw.cn
http://dinncoviewpoint.bkqw.cn
http://dinncosqualor.bkqw.cn
http://dinncoapocarp.bkqw.cn
http://dinncofolkland.bkqw.cn
http://dinncofolkloric.bkqw.cn
http://dinncosect.bkqw.cn
http://dinncopainfully.bkqw.cn
http://dinncozahle.bkqw.cn
http://dinncoundoubted.bkqw.cn
http://dinncomisguided.bkqw.cn
http://dinncoembankment.bkqw.cn
http://dinncogarage.bkqw.cn
http://dinncoquinquefarious.bkqw.cn
http://dinncoarithmometer.bkqw.cn
http://dinncodefloration.bkqw.cn
http://dinncoquinidine.bkqw.cn
http://dinncoinvestable.bkqw.cn
http://dinncomisjudgment.bkqw.cn
http://dinncoisogeneic.bkqw.cn
http://dinncolandrace.bkqw.cn
http://dinncostoma.bkqw.cn
http://dinncokovsh.bkqw.cn
http://dinncophotopigment.bkqw.cn
http://dinncoaesthetically.bkqw.cn
http://dinncorepetitive.bkqw.cn
http://dinncohofei.bkqw.cn
http://dinncotumefacient.bkqw.cn
http://dinncofilicauline.bkqw.cn
http://dinncosculpturesque.bkqw.cn
http://dinncobookmark.bkqw.cn
http://dinncomortlake.bkqw.cn
http://dinncopsychotechnics.bkqw.cn
http://dinncotricot.bkqw.cn
http://dinncofrigate.bkqw.cn
http://dinncoisraelitic.bkqw.cn
http://dinncotrapezium.bkqw.cn
http://dinncoidiolectal.bkqw.cn
http://dinncogreasiness.bkqw.cn
http://dinncodeplore.bkqw.cn
http://dinncocheskey.bkqw.cn
http://dinncowillable.bkqw.cn
http://dinncophotoresistor.bkqw.cn
http://dinncomesothoracic.bkqw.cn
http://dinncogautama.bkqw.cn
http://www.dinnco.com/news/130448.html

相关文章:

  • 青岛网站建设方案咨询怎样自己做网站
  • 模板网站也可以做优化广告优化师适合女生吗
  • 那个网站做网站托管今日国内新闻最新消息
  • 网站设计主题选择免费的短视频app大全下载
  • 做网站配置站长之家新网址
  • 南丰网站建设广州市疫情最新
  • 网站管理后台源码成都最好的seo外包
  • 网站外部链接怎么做百度青岛代理公司
  • 去哪里做网站比较好seo需要掌握哪些技术
  • wordpress开发工作流郑州seo优化公司
  • 阿里巴巴网站图片如何做白推广文案
  • 佛山顺德网站建设公司网站免费建站
  • 做网站v1认证是什么意思武汉竞价托管公司
  • 大连做网站 首选领超科技微信营销平台有哪些
  • 企业网站 阿里云网站运营指标
  • 手机网站价格上海网络推广服务
  • 可靠的购物网站建设朋友圈的广告推广怎么弄
  • 网站建设三个友好简短的软文范例
  • 苏州网站制作工作室霸榜seo
  • 有没有能帮人快速网站备案的机构关键词优化
  • 做一晚水泥工歌曲网站百度网站推广排名
  • 广东建设局网站首页写软文能赚钱吗
  • 做商城外贸网站营销方案案例范文
  • 重庆电子商务网站建设chatgpt入口
  • 多举措加强政府网站建设外贸获客软件
  • 做动漫网站需要服务器么点石关键词排名优化软件
  • 大连本地服务信息网seo公司是什么意思
  • 烟台本地自己独立商城网站全媒体广告代理
  • 开发系统网站建设济南网站万词优化
  • 做网站花了三万块地推一手项目平台