如何在冻结的地图中搜索埃拉桑德拉?



我正在使用elassandra版本6.2.3.4

我有一个卡桑德拉表结构,如下所示: -

CREATE TABLE trackfleet_db.eventsgroup (
imei text,
week int,
event text,
startevent timestamp,
oevent text,
ostartevent timestamp,
duration double,
endevent timestamp,
eventdt timestamp,
eventstats map<text, frozen<eventstartend>>,
lat text,
long text,
odo int,
oduration double,
oendevent timestamp,
olat text,
olong text,
oodo int,
opreviouslat text,
opreviouslong text,
ostate int,
previouslat text,
previouslong text,
state int,
status int,
PRIMARY KEY ((imei, week, event), startevent, oevent, ostartevent)
) WITH CLUSTERING ORDER BY (startevent ASC, oevent ASC, ostartevent ASC)

在"事件统计图>"字段中,我插入了以下数据:-

eventstats = {'ExB': {start: 0, end: 0}, 'InB': {start: 6, end: 6}, 'd1': {start: 0, end: 0}, 'd10': {start: 1, end: 1}, 'd11': {start: 0, end: 0}, 'd12': {start: 1, end: 1}, 'd13': {start: 0, end: 0}, 'd14': {start: 1, end: 1}, 'd15': {start: 0, end: 0}, 'd16': {start: 1, end: 1}, 'd17': {start: 0, end: 0}, 'd18': {start: 1, end: 1}, 'd19': {start: 0, end: 0}, 'd2': {start: 1, end: 1}, 'd20': {start: 1, end: 1}, 'd3': {start: 1, end: 1}, 'd4': {start: 2, end: 2}, 'd5': {start: 0, end: 0}, 'd6': {start: 1, end: 1}, 'd7': {start: 0, end: 0}, 'd8': {start: 1, end: 1}, 'd9': {start: 0, end: 0}}

现在我想在 Elasticsearch 中对事件统计字段执行搜索,如下所示:

eventstats.ExB.start='0' 

然后它返回 0 个文档。

那么我应该如何在弹性搜索中对"eventstats"字段进行搜索。

从 Elassandra v6.2.3.4 开始,不支持 map 内部的 UDT。

计划在未来版本中支持它。

最新更新