Как объединить строку из документов в список строкJAVA

Программисты JAVA общаются здесь
Anonymous
Как объединить строку из документов в список строк

Сообщение Anonymous »


Lets say I have ES records like this:

{ "customerId": 1, "address": "hotel1:1, hotel2:2" "week" : 1 } { "customerId": 2, "address": "hotel3:1, hotel4:2" "week" : 2 } Now I want to concat address into 1

{ "customerId": 2, "address": "hotel3:1, hotel4:2", "hotel1:1, hotel2:2" } Is there a way in Elastic Search or Java API to concatenate strings while aggregating?


Источник: https://stackoverflow.com/questions/781 ... -of-string

Вернуться в «JAVA»