【发布时间】:2016-07-11 15:42:43
【问题描述】:
如何在elasticsearch中对同一个索引进行JOIN操作?
这是每个文档的字段集:
"@version": "1",
"@timestamp": "2016-04-26T15:56:05.379Z",
"phone": "..."
"path": "...",
"host": "...",
"type": "...",
"clientip": "...",
"ident": "-",
"auth": "-",
"timestamp": "...",
"verb": "...",
"uripath": "...",
"httpversion": "1.1",
"response": "200",
"bytes": "515",
"timetaken": "383",
"event_type": "type1"
}
如果我想获得 type1 的 event_type、timestamp 在 timestamp 之间的文档的 phone em>date1 和 date2) 和 (event_type of type2, timestamp 介于 date3 和 date4)
在 mysql 中认为是两个视图之间的连接
【问题讨论】:
-
从文档中说可以在这里使用“dis_max”函数。你遇到过这个吗?
标签: join elasticsearch querydsl