学习Elasticsearch In Action 笔记
Elasticsearch按请求体基本查询
摘要:1 分页: localhost:9200/get-together/_search {"query": {"match_all": {}},"from": 10,"size": 10} 2 查询具体字段: localhost:9200/get-together/_search {"query": {
阅读全文
posted @
2017-04-17 18:01
minjay26
阅读(604)
推荐(1)
elasticsearch按URL查询
摘要:排序查询:localhost:9200/get-together/_search?sort=date:asc, 排序以及按字段查询:localhost:9200/get-together/_search?sort=date:asc&_source=title,date, 排序和字段中关键字查询:lo
阅读全文
posted @
2017-04-17 16:47
minjay26
阅读(504)
推荐(0)
Elasticsearch笔记2
摘要:1 搜索所有文档中还有某个字段的方法: localhost:9200/get-together/group/_search?pretty 结果为 只要某个文档中还有该字段都会被查出,也可以设置 " default_field ": " name ","default_operator": "AND"
阅读全文
posted @
2017-04-07 10:35
minjay26
阅读(189)
推荐(0)
Elasticsearch笔记
摘要:1 创建index,type : localhost:9200/get-together/group/1?pretty 然后跟上body: {"name": "Elasticsearch Denver","organizer": "Lee"} 这样会自动创建index为get-together,ty
阅读全文
posted @
2017-04-06 15:53
minjay26
阅读(148)
推荐(0)
关于es update异常 ScriptException[dynamic scripting for [groovy] disabled]
摘要:你需要在elasticsearch.yml中配置 script.disable_dynamic: false 然后别忘了重启。
阅读全文
posted @
2017-03-23 16:18
minjay26
阅读(658)
推荐(0)