现在的位置: 首页 > 综合 > 正文

elasticsearch学习笔记1

2018年04月08日 ⁄ 综合 ⁄ 共 588字 ⁄ 字号 评论关闭
  • 后台启动

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
对于时间容量等内容处理



抱歉!评论已关闭.