Skip to content

Generating terms using a script #1910

Closed

Description

Tried the following JSON input as a simple test of generating terms using a script in the visualize aggregation builder:

{ "script" : "doc['gender'].value" }

but got a fatal error (GroovyScriptExecutionException[ArrayIndexOutOfBoundsException[null]. I think this is because Kibana is still sending the term field, which should be omitted with this kind of script.

I did get a value script to work:

{ "script" : "'Test: '+_value" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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