How to add a new field to an alias?

Dear all,

I am new to Elasticsearch and I want to know how I can add a new field to
an alias... Let me explain what I am doing,

Actually what I am trying to do is explained here,

So according to the response that I got, I tried to use "script_fields"
while the query, but as a result I got just the filtered result, what I
want is to get _source + scripted field.

Second thing I tried was,

I had an alias which was pointin my index, so what I tried to do was to
have a new alias pointing the same index but scripted filter added this
time; so I tried to generate a new alias while adding a new scripted field
but I am still unavailable to do that. Do you have any idea how I can
continue ?

Thanks a lot

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit