Hi guys,
i need help with - my challenge is that i have to generate a new field when the query match the cretiria.
see the code below:
Here I need to add/create a field (references) and fill it with the same value I found above in the message (AC949111)
{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"message": "AC949111"
}
},
{
"match_phrase": {
"message": "AC949110"
}
},
......
....
..
// Here I need to add/create a field (references) and fill it with the same value I found above in the message (AC949111/AC949110/....)
}
],
"minimum_should_match": 1
}
}
}
Thank you