Skip to content

master分支整合mybatis,使用字段别名时,结果为空 #917

@liujianrong

Description

@liujianrong

master分支整合mybatis,使用字段别名时,查询出来结果为空,但是使用 _id as auser 可以正常取到结果。

sql语句:select message as auser from monitor

debug解析出来的dsl脚本:
{"from":0,"size":1000,"_source":{"includes":[],"excludes":[]},"script_fields":{"auser":{"script":{"source":"doc['message'].value","lang":"painless"},"ignore_failure":false}}}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions