elasticsearch学习笔记1

  • 后台启动

bin/elasticsearch -f

bin/elasticsearch -f -Xmx2g -Xms2g -Des.index.store.type=memory

  • http设置和关闭
Setting Description

http.port

A bind port range. Defaults to 9200-9300.

http.max_content_length

The max content of an HTTP request. Defaults to 100mb

http.max_initial_line_length

The max length of an HTTP URL. Defaults to 4kb

http.compression

Support for compression when possible (with Accept-Encoding). Defaults to false.

http.compression_level

Defines the compression level to use. Defaults to 6.

关闭http模块 http.enabled

  • 同时查询多个索引
设置test1,test2,test3  ( _all 查询全部索引)
设置ignore_indices 忽略不存在的索引

  • 常用选项
?pretty=true json标准格式输出

format=yaml

human=true 对于时间容量等内容处理



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值